Economy / AFFECTION
AFFECTION
The token Dysnomia prices itself in: every core contract sells its own token for AFFECTION at a fixed 1:1, and keeps what you pay.
_addMarketRate(AFFECTIONContract, 1 * 10 ** decimals());
That line, in the constructor of the Dysnomia domain contracts, registers AFFECTION as something the contract will trade its own token for, at one-for-one. It is why AFFECTION is the system's unit of account. The live check is in the Reserves tab: each contract is asked GetMarketRate(AFFECTION).
Purchase: AFFECTION in, the contract's token out
function Purchase(address _t, uint256 _a) public {
if(_marketRates[_t] == 0) revert MarketRateNotFound(_t);
DYSNOMIA BuyToken = DYSNOMIA(_t);
uint256 cost = (_a * _marketRates[_t]) / (10 ** decimals());
bool success1 = BuyToken.transferFrom(msg.sender, address(this), cost);
require(success1, string.concat(unicode"Need Approved ", BuyToken.name()));
DYSNOMIA(address(this)).transfer(msg.sender, _a);
}
Your AFFECTION lands in the contract's own balance. The contract then pays you from its own stock of its own token, so a Purchase only works while it holds some. The Reserves table shows which can sell.
Redeem: the contract's token in, AFFECTION out
cost = (amount × rate) ÷ 10^decimals domain.transferFrom(you → domain, amount) AFFECTION.transfer(domain → you, cost)
The same arithmetic run backwards, paid from the AFFECTION the contract has taken in. Simulated on CHEON: 1 CHEON in, 1 AFFECTION out.
AFFECTION itself is older than Dysnomia: an Atropa token deployed in June 2024, about two and a half months before the core contracts. It is not built on the Dysnomia base, so it has no market rates of its own. Calling its Rho() mints three AFFECTION into the contract itself (simulated: three Transfers from 0x0), and the contract sells that stock for other Atropa tokens; Mint costs prices those routes.
Core contracts
Every core contract in our address book, asked three things: its AFFECTION rate, how much AFFECTION it holds, and how much of its own token it has left to sell.
| Contract | Rate | AFFECTION held | Share | Own token in stock |
|---|
Territories
The territories holding the most AFFECTION.
| # | Territory | AFFECTION held | Rate |
|---|
Identities
The identities holding the most AFFECTION.
| # | Identity | AFFECTION held |
|---|
function AddMarketRate(address Contract, uint256 Rate) public onlyOwners
A territory (QING) can start pricing against AFFECTION after it launches. Its owner calls AddMarketRate, and three rules apply. Each was checked by simulating the call against the live chain:
Only an owner can set it
error OwnableUnauthorizedAccount(address origin, address account, address what)
From any other address the call reverts with this error.
A rate can never go down
error MarketRateCanOnlyBeIncreased(address Contract, uint256 CurrentRate)
Setting it lower reverts. Setting it to the same value or higher goes through.
Capped at supply ÷ 777
error TokenMaximumRate(address Contract, uint256 MaximumRate)
The ceiling is the priced token's total supply divided by 777: for AFFECTION, — right now. A rate exactly at the cap goes through; one wei more reverts.
What a rate means: cost = amount × rate ÷ 10^18. A rate of 1 (written 1 × 10^18) means one territory token costs one AFFECTION; a rate of 100 means it costs a hundred. The territories that have set one are in the Reserves tab with their rate.
function burn(uint256) · function burnFrom(address, uint256)
Two different questions
- Do the Dysnomia contracts burn the AFFECTION you spend? No.
Purchase()moves it into the contract withtransferFrom(msg.sender, address(this), cost), where it stays andRedeem()can pay it back out. That is why the reserves grow. - Can AFFECTION be burned at all? Yes. The AFFECTION token has a public
burn(uint256)andburnFrom(address,uint256)(listed inabis/all.js; a simulatedburn(1)from a holder succeeds). Any holder can destroy their own. A burn this way lowerstotalSupply()and leaves no balance anywhere, so it does not show up in the burn-address figure.
Every figure on this page, as the chain answered it in your browser.
| Read | Answer |
|---|---|
| Reading the contract… | |
Territory and identity figures come from /api/affection, which repeats the same reads across every territory and identity in the registry and caches them for ten minutes.