What is a sacrifice?
A sacrifice is Altar’s word for a deposit. You send tokens to a deposit address that belongs to a campaign. Altar reads the blockchain, records the deposit, gives it a US dollar value, and turns it into points.
In the code and in the API, a campaign is also called a project. A deposit is a sacrifice. These docs use “campaign” and “deposit”, and say “sacrifice” when they match the app or the API.
What happens to a deposit
Section titled “What happens to a deposit”- You sign in. You sign a message with your wallet. This proves you own the wallet. You sign a separate message for each campaign. The wallet you sign with becomes your points address: the address that receives the points.
- You ask for a deposit address. For each network you sign a second message. Altar answers with the deposit address for that network. If the campaign has ended, Altar refuses with HTTP 403.
- You send tokens. You send a supported token on a supported chain to that address.
- Altar records the deposit. Collectors read each chain and store deposits once the chain finalizes the block. Lists and points use finalized deposits only.
- Altar prices the deposit. Each token has a price source. Altar uses it to give the deposit a value in US dollars.
- Altar calculates points. A background worker runs the points calculation and saves the result as a points version.
Words you will see
Section titled “Words you will see”| Word | Meaning |
|---|---|
| Campaign | One fundraising run with its own schedule, tokens, and points settings. |
| Sacrifice | One deposit. |
| Points address | The address that receives the points for a deposit. |
| Step | A fixed length of time (one day in the default settings). Rates change step by step. |
| Points version | One saved result of the points calculation. |
What to read next
Section titled “What to read next”- Campaign lifecycle: the stages of a campaign.
- How points are calculated: the exact rules, with a worked example.
- Verify it yourself: check your deposits and points against public data.