đ°Reserve Contract
Last updated
Last updated
The Reserve Contract contains logic for holding the funds of the casino. Initially, the funds are received from the ICO and later on increased (or decreased) by the games managed by the reserve. The reserve fund decreases by: Deficient games: Games that donât have enough funds to pay back the winners withdraw from the reserve to payback the winners Daily stakers dividends The reserve fund increases by: Winning games: Game contracts that get their balance above a certain threshold will send the extra funds to the reserve ICO Anchor deposit yield.
This contract is managed by the governance contract. Many of its execute messages are only allowed to be called from the governance contract
Key | Type | Description |
---|---|---|
Changes the UST amount above which we deposit to Anchor
Whitelists a game contract. That game would be able to request funds from the reserve contract
Delists a game contract. That game would not be able to request funds from the reserve anymore
A game contracts execute this to request funds from the reserve contract
A game contracts execute this to deposit funds to the reserve contract
The current balance in the reserve contract. The calculation takes into account the uusd and the aUST with the current aUST price
Returns the current maximum amount of UST above which we deposit to Anchor
Lists all whitelisted games that are allowed to request funds from the reserve contract
Key | Type | Description |
---|---|---|
anchor_market_address
CanonicalAddr
Address of anchor market contract
gov_contract_address
CanonicalAddr
Address of the gov contract to be able to change parameters through voting
anchor_token_address
CanonicalAddr
Address of anchor token ANC contract
threshold
Decimal
maximum amount of UST above which we deposit to Anchor
games
vec
Whitelisted games that are allowed to send and receive funds
anchor_market_address
CanonicalAddr
Address of anchor market contract
gov_contract_address
CanonicalAddr
Address of the gov contract to be able to change parameters through voting
anchor_token_address
CanonicalAddr
Address of anchor token ANC contract
threshold
Decimal
maximum amount of UST above which we deposit to Anchor
games
vec
Whitelisted games that are allowed to send and receive funds