Snowbank treasury backing and excess reserves
Snowbank treasury held the assets that supported SB, the reserve-currency token on Avalanche. Its legacy contract calculated excess reserves by subtracting token supply minus recorded debt from total reserves. That balance constrained authorized reward minting and asset management. Snowbank announced its shutdown in February 2022, so these rules describe its historical treasury design.
Updated ยท
Token balances, reserve accounting, and access permissions described different parts of the treasury. Deposits connected incoming assets to new SB, while reward minting consumed accounting headroom. A positive surplus alone granted no withdrawal rights to an SB holder.
Bottom line: Snowbank's legacy treasury limited reward minting through excess reserves while assigning separate permissions to asset transfers and reserve withdrawals.
Reserve assets and liquidity positions
Reserve assets and liquidity-provider tokens entered the treasury through separate permission checks and valuation rules. The constructor registered MIM, Magic Internet Money, as a reserve token. The reserve path required reserve-depositor permission, while tokens classified only as liquidity assets required liquidity-depositor permission.
SB used nine decimal places, and reserve valuation converted an accepted asset's raw quantity into that accounting precision. The calculation used the two tokens' decimal settings. It did not query a trading price or test the reserve asset's dollar peg. A reserve value therefore described the contract's accounting treatment, without establishing an equivalent market sale value.
Recognized liquidity tokens used the configured bond calculator to value the treasury's position. The
bondCalculator
mapping identified a valuation contract for each liquidity token. If a token held both classifications, the valuation function followed its reserve branch first, which determined its credited value.
The deposit function added the full accepted valuation to
totalReserves
and minted value minus the supplied profit argument to the approved caller. Retaining the difference increased accounting headroom, assuming other inputs remained unchanged. The profit argument described treasury accounting; it did not measure a holder's investment return.
How did excess reserves limit SB issuance?
Excess reserves set an upper bound on each reward-minting request from an address with active reward-manager permission. Total reserves, total SB supply, and outstanding treasury debt supplied its inputs; SB's trading price supplied none.
The legacy calculation was
excessReserves = totalReserves - (totalSupply - totalDebt)
.
Its inputs used SB's accounting precision, and the debt term represented treasury borrowing recorded by this contract. Outstanding bond payouts had separate accounting in bond contracts.
A positive reward mint increased SB supply without reducing the stored
totalReserves
figure, so it reduced subsequent excess headroom when other inputs stayed unchanged. The bound applied when the call executed. A previously displayed surplus did not reserve minting capacity or establish a future staking return.
Checked unsigned arithmetic made the read revert if outstanding debt exceeded supply, or reserves fell below supply net of debt. A failed read therefore described a different contract state from a returned zero; the function did not display a negative surplus.
Reward minting and asset transfers
Reward minting created SB for a specified recipient, while asset management moved tokens that the treasury already held. Both operations checked excess reserves, but their amount arguments described different quantities. The reward amount counted SB, whereas an asset-management amount counted the selected asset's units before conversion through
valueOf
.
The reward function allowed an approved reward manager to specify a recipient, who did not have to be the caller. Asset management compared the selected tokens' accounting value with excess reserves, reduced
totalReserves
by that value, and transferred the requested tokens to the manager. The transfer also depended on sufficient token holdings. Asset management selected liquidity-manager permission when the token's liquidity flag was active; its other branch required reserve-manager permission. Reward-manager authorization alone granted neither permission. Successful reward minting emitted
RewardsMinted
, while successful asset management emitted
ReservesManaged
.
Reserve withdrawals and treasury debt
Reserve withdrawals burned SB from the caller and transferred a recognized reserve asset back to that caller. Only an address with active reserve-spender permission could use the legacy reserve-withdrawal function. The burn matched the requested reserve quantity's accounting value. This path reduced reserves and SB supply without applying the asset-management function's excess-reserve check.
Treasury borrowing required debtor permission and an accepted reserve asset. Its limit used the borrower's balance of the token configured in
MEMOries
, minus that borrower's existing debt. Borrowing increased both account debt and
totalDebt
while reducing
totalReserves
. The matched reserve and debt changes offset each other in the excess formula while supply and valuation remained unchanged.
Reserve-asset repayment returned assets, reduced account and total debt, and increased reserves by the returned assets' accounting value. Repayment with SB burned SB and reduced both debt records without depositing a reserve asset. Both repayment functions required debtor permission.
Permissions and reserve inventories
Treasury permissions used separate mappings for deposits, reserve spending, borrowing, reward minting, and asset management. Holding SB or approving a token allowance did not activate those roles, which the management address controlled through queue and activation operations. A queued change still needed activation before an inactive role became usable.
Reserve inventories depended on token classification as well as token balances. The
auditReserves
function recomputed
totalReserves
by applying
valueOf
to each treasury balance in the stored reserve-token and liquidity-token lists. The resulting
ReservesAudited
event recorded an internal inventory update. It did not certify market liquidity or the stability of an asset's price. Reserve accounting could change when an inventory recalculation encountered different balances or recognized valuations. The treasury could therefore hold tokens that contributed no recognized reserve value.
The February 2022 distribution state
Snowbank's February 2022 shutdown announcement paired the project's end with a final SB-to-USDC distribution. The legacy frontend configured a redemption contract separately from the treasury contract. Ordinary reserve withdrawals served approved reserve spenders; they did not establish holder eligibility for that separate event. The excess-reserve formula alone supplied neither a distribution rate nor evidence that redemption remained available.
A first read-only treasury inspection
A first read-only check could distinguish reward headroom from permission to withdraw an asset, without changing contract state. The legacy frontend selected
0xa82422A5FD4F9cB85cD4aAc393cD3296A27dD873
as its Avalanche treasury address. Reading the relevant values at the same block kept the inputs comparable.
- Match the Avalanche treasury contract and its configured SB token before interpreting reserve figures.
-
Read
totalReserves, SB'stotalSupply, andtotalDebtat the same block for the excess calculation. - For a reward-minting question, inspect the caller's active reward-manager flag alongside the returned headroom.
- For asset management, inspect the token classification, applicable manager flag, credited value, and treasury token balance.
- Keep a reverted excess read distinct from zero headroom, and keep final-distribution eligibility separate from treasury permissions.
The check could end with the returned values and permission states recorded, without a token approval or transaction. A positive excess balance described accounting capacity without granting the inspecting address a right to move reserves.
Things people ask about Snowbank treasury
Could anyone trigger a treasury reserve audit?
The legacy treasury restricted auditReserves to its management address. That function recalculated the stored reserve value from recognized token balances and emitted an internal audit event. Reading public reserve fields required no such management permission. The function name did not mean that an independent reviewer had audited the protocol's security.
Did a direct token transfer automatically increase totalReserves?
A direct token transfer did not run the treasury's deposit accounting or automatically increase totalReserves. A later authorized inventory recalculation could count a recognized asset through its valuation rules. Sending an asset directly also did not invoke the deposit function that minted SB for an approved depositor.
Can an unrecognized token have a zero treasury valuation?
The legacy valueOf function returned zero when a token had neither reserve nor liquidity recognition. The manage function then required active reserve-manager permission. It could transfer such a treasury-held token without reducing totalReserves, provided the excess-reserve read and token transfer succeeded.
Was every treasury permission subject to the same queued delay?
New reserve-manager and liquidity-manager permissions used twice the configured base queue delay. Other queued role additions used the base delay. The management address still had to activate an eligible change after its delay elapsed. Removing an already active role did not require a new waiting period in those permission branches.
Do the old treasury role lists show active authorization?
The stored role lists could retain addresses after their permissions changed. The corresponding boolean mapping determined whether an address had active authorization for an operation. An address appearing in an old list therefore did not establish permission at a later block, even if the list remained publicly readable.