WildcatMarketConfig.sol
The WildcatMarketConfig
is the configuration contract containing configuration and authorization logic.
maximumDeposit
Maximum amount that may be deposited into the market, based on the current market state.
maxTotalSupply
Maximum supply the market can reach via deposits (does not apply to interest accrual).
annualInterestBips
Returns the APR earned by lenders in bips.
One annual APR bip is 0.01% interest per year.
liquidityCoverageRatio
Percentage of outstanding balance that must be held in liquid reserves.
revokeAccountAuthorization
Revokes an account's authorization to deposit assets and updates the market state.
Reverts if:
the caller is not the controller.
the reentrancy lock is engaged.
the account is blacklisted.
Logs:
grantAccountAuthorization
Restores an account's authorization to deposit assets and updates the market state.
Cannot be used to restore a blacklisted account's status.
Reverts if:
the caller is not the controller.
the reentrancy lock is engaged.
the account is blacklisted.
Logs:
nukeFromOrbit
Block an account from interacting with the market, deletes its balance, and updates the market state.
Reverts if:
the caller is not the sentinel.
Logs:
stunningReversal
Removes the blocked status from an account, setting it to Null instead.
Reverts if:
The account was not blocked, with error
AccountNotBlocked
.The account is still flagged as sanctioned according to the sentinel, with error
NotReversedOrStunning
.
Logs:
AuthorizationStatusUpdated
setMaxTotalSupply
Sets the maximum total supply and updates the market state. This only limits deposits and does not affect interest accrual.
Reverts if:
the caller is not the controller.
the reentrancy lock is engaged.
the new maximum total supply is less than the total supply.
Logs:
setAnnualInterestBips
Sets the annual interest bips and updates the market state.
Reverts if:
the caller is not the controller.
the reentrancy lock is engaged.
the new annual interest bips is greater than the max bip size.
Logs:
setLiquidityCoverageRatio
Sets the liquidity coverage ratio and updates the market state.
Reverts if:
the caller is not the controller.
the reentrancy lock is engaged.
the new liquidity coverage ratio is greater than the max bip size.
the new liquidity required is greater than the total assets.
Logs:
Last updated