OUSDResolutionUpgrade
OUSDResolutionUpgrade
RebaseOptions
enum RebaseOptions {
NotSet,
OptOut,
OptIn
}
_totalSupply
uint256 _totalSupply
vaultAddress
address vaultAddress
nonRebasingSupply
uint256 nonRebasingSupply
nonRebasingCreditsPerToken
mapping(address => uint256) nonRebasingCreditsPerToken
rebaseState
mapping(address => enum OUSDResolutionUpgrade.RebaseOptions) rebaseState
isUpgraded
mapping(address => uint256) isUpgraded
rebasingCreditsPerToken
function rebasingCreditsPerToken() public view returns (uint256)
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | High resolution rebasingCreditsPerToken |
rebasingCredits
function rebasingCredits() public view returns (uint256)
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | High resolution total number of rebasing credits |
rebasingCreditsPerTokenHighres
function rebasingCreditsPerTokenHighres() public view returns (uint256)
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | High resolution rebasingCreditsPerToken |
rebasingCreditsHighres
function rebasingCreditsHighres() public view returns (uint256)
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | High resolution total number of rebasing credits |
upgradeGlobals
function upgradeGlobals() external
upgradeAccounts
function upgradeAccounts(address[] accounts) external
creditsBalanceOfHighres
function creditsBalanceOfHighres(address _account) public view returns (uint256, uint256, bool)
_creditsPerToken
function _creditsPerToken(address _account) internal view returns (uint256)
Get the credits per token for an account. Returns a fixed amount if the account is non-rebasing.
Parameters
Name | Type | Description |
---|---|---|
_account | address | Address of the account. |