Skip to content

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

SettingWhat it doesFormat
projectIdThe campaign identifier. It appears in API paths and in the campaign URL.Text, 1 or more characters.
projectNameThe name people see.Text.
projectDescriptionA longer description for the campaign page.Text.
projectTaglineA one-line summary.Text, or empty.
projectWebsiteLink to your own website.URL, or empty.
projectLogoLink to the campaign logo image.URL, or empty.
projectBannerLink to the banner image.URL, or empty.
projectAccentColorThe main color of the campaign page.Color text, or empty.
projectAccentColorVariantA second color that goes with the accent color.Color text, or empty.
projectDisclaimerShortThe 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.
projectDisclaimerLongThe full terms text shown to depositors.Text.
projectSocialLinksLinks to your social accounts.List of platform name and URL pairs.
projectTagsLabels that help people find the campaign.List of text.

Schedule

SettingWhat it doesFormat
startTimeWhen 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.
inflectionTimeWhen 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.
endTimeWhen 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

SettingWhat it doesFormatDefault
decayRateSingleStepHow 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
decaySingleStepDelaySecondsThe length of one step. The points calculation refuses a value below one hour (3600 seconds).Whole seconds, as a decimal string.24 hours
volumeBonusRateStored 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)
volumeBonusCutoffHow 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
flatBonusRateThe 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%
flatBonusCutoffHow 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
usdToPointBaseRatePoints per US dollar, before decay and bonuses.Whole number scaled by 10^18. 10000000000000000000000 means 10,000 points per dollar.10000 points per dollar
referralRateThe 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)
countEarlySacrificesWhether deposits made before the start time earn points. When off, they earn nothing.Yes or no.Yes
useInflectionStepOneWhether 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
priceValidFromTimestampPrices 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)

SettingWhat it doesFormat
incrementModeWho hands out deposit-address indices: the onchain registry (`onchain`) or the server counter (`offchain`). Set at creation. It cannot change.`onchain` or `offchain`.
registryAddressThe registry contract address. Required for `onchain`. Must be empty for `offchain`.EVM address, or empty.
registryProjectKeyThe campaign key in the registry. Required for `onchain`. Must be empty for `offchain`.32-byte hex string, or empty.

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.