mStable USD

Verified contract

Proxy

Active on Ethereum with 46,780 txns
Deployed by via 0xcc9d9ccf at 10148032
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
12 additional variables
ERC-20
Value $1,315.34
ERC-20
Value $219
ERC-20
Value $27.36
ERC-20
Value $0.29
ERC-20
Value $0.02
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x19e8374df6f25d1eb288e45897fef2916fe826a6e5ba677b240f25e88e6987e6
0xfa57b2b8196a8da1dff275f8bb8f61788130c89b88ef88d4f76900c86ba45252
0xa493fca3b2cd6b640dc7e68051b7249724c899de02a2b409525516494f0749f4
0x0dbf45aa3b600dafeaf677f6ffdcea99a62dd81fcc732dc5df2b8ed0004aa989
0xc2444aaba650ff431a3c2ef2e981e85f9bbd09c85f9659b982b8656abb738e7c
0xcab49552369e92f14313362c70b38b688af5c9228dc8a279ce960d2baf0a99d3
0xc8790186f482f06bce1beb00a8f13efcdf5ae34c308b1483dc1f379c9e495a7a
0x19332a71b703dea35f1e098b7bdadc199925b76ea8d746f20d82b4926fe11351
0x5c86dff9dc9575312b1374da35c5d4b3ebec52be748de1cce2decc5cf9430c74
0xa8b2183c6a9d8769712a1d6995b109fdacdb1eebfaf0dba968970f746010a963

Functions
Getter at block 21273841
ampData(view returns (uint64 initialAuint64 targetAuint64 rampStartTimeuint64 rampEndTime)
(initialA=13500, targetA=25000, rampStartTime=1618312221, rampEndTime=1618564070)
basket(view returns (bool undergoingRecolbool failed)
(undergoingRecol=false, failed=false)
cacheSize(view returns (uint256)
30000000000000000
decimals(view returns (uint8)
18
forgeValidator(view returns (address)
0xca480d596e6717c95a62a4dc1bd4fbd7b7e7d705
getBasket(view returns (boolbool)
(false, false)
 
getBassets(view returns (struct MassetStructsBassetPersonal[] personalstruct MassetStructsBassetData[] data)
getConfig(view returns (struct MassetStructsInvariantConfig config)
(25000, (50000000000000000, 500000000000000000))
maxBassets(view returns (uint8)
10
name(view returns (string)
mStable USD
nexus(view returns (address)
0xafce80b19a8ce13dec0739a1aab7a028d6845eb3
redemptionFee(view returns (uint256)
200000000000000
surplus(view returns (uint256)
1
swapFee(view returns (uint256)
200000000000000
symbol(view returns (string)
mUSD
totalSupply(view returns (uint256)
3014111768600369859752356
weightLimits(view returns (uint128 minuint128 max)
(min=50000000000000000, max=500000000000000000)
Read-only
allowance(address owneraddress spenderview returns (uint256)
bAssetData(uint256view returns (uint128 ratiouint128 vaultBalance)
bAssetIndexes(addressview returns (uint8)
bAssetPersonal(uint256view returns (address addraddress integratorbool hasTxFeeuint8 status)
balanceOf(address accountview returns (uint256)
getBasset(address _bAssetview returns (struct MassetStructsBassetPersonal personalstruct MassetStructsBassetData data)
getMintMultiOutput(address[] _inputsuint256[] _inputQuantitiesview returns (uint256 mintOutput)
getMintOutput(address _inputuint256 _inputQuantityview returns (uint256 mintOutput)
getRedeemExactBassetsOutput(address[] _outputsuint256[] _outputQuantitiesview returns (uint256 mAssetQuantity)
getRedeemOutput(address _outputuint256 _mAssetQuantityview returns (uint256 bAssetOutput)
getSwapOutput(address _inputaddress _outputuint256 _inputQuantityview returns (uint256 swapOutput)
State-modifying
admin(returns (address)
changeAdmin(address newAdmin
implementation(returns (address)
initialize(address _logicaddress _adminbytes _datapayable 
initialize(address _logicbytes _datapayable 
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
approve(address spenderuint256 amountreturns (bool)
collectInterest(returns (uint256 mintAmountuint256 newSupply)
collectPlatformInterest(returns (uint256 mintAmountuint256 newSupply)
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
handlePegLoss(address _bAssetbool _belowPeg
increaseAllowance(address spenderuint256 addedValuereturns (bool)
migrateBassets(address[] _bAssetsaddress _newIntegration
mint(address _inputuint256 _inputQuantityuint256 _minOutputQuantityaddress _recipientreturns (uint256 mintOutput)
mintMulti(address[] _inputsuint256[] _inputQuantitiesuint256 _minOutputQuantityaddress _recipientreturns (uint256 mintOutput)
negateIsolation(address _bAsset
redeem(address _outputuint256 _mAssetQuantityuint256 _minOutputQuantityaddress _recipientreturns (uint256 outputQuantity)
redeemExactBassets(address[] _outputsuint256[] _outputQuantitiesuint256 _maxMassetQuantityaddress _recipientreturns (uint256 mAssetQuantity)
redeemMasset(uint256 _mAssetQuantityuint256[] _minOutputQuantitiesaddress _recipientreturns (uint256[] outputQuantities)
setCacheSize(uint256 _cacheSize
setFees(uint256 _swapFeeuint256 _redemptionFee
setTransferFeesFlag(address _bAssetbool _flag
setWeightLimits(uint128 _minuint128 _max
startRampA(uint256 _targetAuint256 _rampEndTime
stopRampA(
swap(address _inputaddress _outputuint256 _inputQuantityuint256 _minOutputQuantityaddress _recipientreturns (uint256 swapOutput)
transfer(address recipientuint256 amountreturns (bool)
transferFrom(address senderaddress recipientuint256 amountreturns (bool)
upgrade(address _forgeValidatorstruct MassetStructsInvariantConfig _config
upgradeForgeValidator(address _newForgeValidator
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
Approval(address indexed owneraddress indexed spenderuint256 value
CacheSizeChanged(uint256 cacheSize
FeesChanged(uint256 swapFeeuint256 redemptionFee
ForgeValidatorChanged(address forgeValidator
Minted(address indexed minteraddress recipientuint256 mAssetQuantityaddress inputuint256 inputQuantity
MintedMulti(address indexed minteraddress recipientuint256 mAssetQuantityaddress[] inputsuint256[] inputQuantities
Redeemed(address indexed redeemeraddress recipientuint256 mAssetQuantityaddress outputuint256 outputQuantityuint256 scaledFee
RedeemedMulti(address indexed redeemeraddress recipientuint256 mAssetQuantityaddress[] outputsuint256[] outputQuantityuint256 scaledFee
Swapped(address indexed swapperaddress inputaddress outputuint256 outputAmountuint256 scaledFeeaddress recipient
Transfer(address indexed fromaddress indexed touint256 value
WeightLimitsChanged(uint128 minuint128 max
Constructor

This contract contains no constructor objects.

Fallback and receive
fallback(
Errors

This contract contains no error objects.