Campaign settings
A campaign is one configuration object. These tables are generated when the docs are built. The list of settings comes from the real configuration schema in sacrifice-utils, and the defaults come from the built-in default curve. A test fails when the schema gains a setting that these tables do not describe.
Large numbers are written as decimal strings. A rate “scaled by 10^18” means that 1000000000000000000 is 1.0, which is 100%. So 62500000000000000 is 6.25%.
Identity and terms
| Setting | What it does | Format |
|---|---|---|
projectId | The campaign identifier. It appears in API paths and in the campaign URL. | Text, 1 or more characters. |
projectName | The name people see. | Text. |
projectDescription | A longer description for the campaign page. | Text. |
projectTagline | A one-line summary. | Text, or empty. |
projectWebsite | Link to your own website. | URL, or empty. |
projectLogo | Link to the campaign logo image. | URL, or empty. |
projectBanner | Link to the banner image. | URL, or empty. |
projectAccentColor | The main color of the campaign page. | Color text, or empty. |
projectAccentColorVariant | A second color that goes with the accent color. | Color text, or empty. |
projectDisclaimerShort | The short terms text. A depositor signs it when they sign in: the login signature includes this exact text, so changing it later changes what a login signature must contain. | Text, or empty. |
projectDisclaimerLong | The full terms text shown to depositors. | Text. |
projectSocialLinks | Links to your social accounts. | List of platform name and URL pairs. |
projectTags | Labels that help people find the campaign. | List of text. |
Schedule
| Setting | What it does | Format |
|---|---|---|
startTime | When the campaign starts. Deposit steps and the bonus windows count from here. Deposits before this time earn points only when the campaign counts early deposits. | Whole seconds since the Unix epoch, as a decimal string. |
inflectionTime | When decay begins. Deposits before this time earn the full base rate. It must not be earlier than the start time. | Whole seconds since the Unix epoch, as a decimal string. |
endTime | When the campaign ends. A deposit after this time earns no points, and the app stops accepting new address requests. It must not be earlier than the inflection time. Empty means no end. | Whole seconds since the Unix epoch, as a decimal string. Or empty. |
Points curve
| Setting | What it does | Format | Default |
|---|---|---|---|
decayRateSingleStep | How much the points rate falls in each step after the inflection time. Each step multiplies the points per dollar by 1 divided by (1 plus this rate). | Whole number scaled by 10^18. 62500000000000000 means 6.25% per step. | 6.25% per step |
decaySingleStepDelaySeconds | The length of one step. The points calculation refuses a value below one hour (3600 seconds). | Whole seconds, as a decimal string. | 24 hours |
volumeBonusRate | Stored with the campaign and shown in the app. The current points calculation does not read it: the volume bonus uses a fixed curve (see How points are calculated). | Whole number scaled by 10^18. | 3x (stored, not used in the calculation) |
volumeBonusCutoff | How many steps after the start the volume bonus window lasts. A deposit made before start time plus this many steps is in the volume window. | Whole number of steps. | 54 steps |
flatBonusRate | The flat bonus, as a share of the credit points of a deposit in the flat window. 100% adds the same number of points again. | Whole number scaled by 10^18. 1000000000000000000 means 100%. | 100% |
flatBonusCutoff | How many steps after the start the flat bonus window ends. The flat window runs from the volume cutoff to this cutoff. | Whole number of steps. | 59 steps |
usdToPointBaseRate | Points per US dollar, before decay and bonuses. | Whole number scaled by 10^18. 10000000000000000000000 means 10,000 points per dollar. | 10000 points per dollar |
referralRate | The referral rate. It is stored and shown, but the current points calculation does not award referral points. | Whole number scaled by 10^18, or empty. | 10% (stored, not paid) |
countEarlySacrifices | Whether deposits made before the start time earn points. When off, they earn nothing. | Yes or no. | Yes |
useInflectionStepOne | Whether the moment of inflection already counts as decay step 1. When off, the first step period after inflection is step 0. | Yes or no. | No |
priceValidFromTimestamp | Prices saved before this time are treated as out of date and are fetched again. | ISO date and time, or empty. | None |
Genesis (fixed at creation)
| Setting | What it does | Format |
|---|---|---|
incrementMode | Who hands out deposit-address indices: the onchain registry (`onchain`) or the server counter (`offchain`). Set at creation. It cannot change. | `onchain` or `offchain`. |
registryAddress | The registry contract address. Required for `onchain`. Must be empty for `offchain`. | EVM address, or empty. |
registryProjectKey | The campaign key in the registry. Required for `onchain`. Must be empty for `offchain`. | 32-byte hex string, or empty. |
Networks and tokens
Section titled “Networks and tokens”A campaign also holds a list of networks and a list of price sources.
Each network has a network family, a chain identifier, a name, and a root address. It can have a lower and an upper address range (lowerRange, upperRange), and a disabled flag. Networks that derive a distinct address per index (Bitcoin-style, Cardano, Monero, Solana) also take a publication mode: backend-live (the server derives addresses on request) or published-pool (the admin uploads a range of addresses in advance and publishes its Merkle root). Solana always uses published-pool.
Each price source names one token and how to price it:
source |
Meaning |
|---|---|
stable |
A fixed price of one US dollar. |
ccxt |
An exchange market, read through an open-source exchange library. A market is required. |
dex |
A decentralized exchange pool. A market is required. |
zero |
The token is on purpose ignored: it has no value. |
pending |
The token waits for a price source. Altar skips it for now. |
The configuration also keeps a list of exchange addresses (cexAddresses). A deposit whose points address is on this list earns no points, and the deposit lists mark it with isCexAddress.
The full machine-readable shape is in the API reference, under POST /admin/campaign/import.