Skip to content

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.

  1. 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.
  2. 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.
  3. You send tokens. You send a supported token on a supported chain to that address.
  4. Altar records the deposit. Collectors read each chain and store deposits once the chain finalizes the block. Lists and points use finalized deposits only.
  5. Altar prices the deposit. Each token has a price source. Altar uses it to give the deposit a value in US dollars.
  6. Altar calculates points. A background worker runs the points calculation and saves the result as a points version.
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.