0 txs
0 calls
constructor
constructor(address _staderStakePoolsManager, address _asset, address _oracle, address _config)
functions
collateralAsset
viewfunction collateralAsset() view returns (address)
configurator
viewfunction configurator() view returns (address)
depositedAsset
viewfunction depositedAsset(address) view returns (uint256)
getAsset
viewfunction getAsset() view returns (address)
getAsset2EtherExchangeRate
viewfunction getAsset2EtherExchangeRate() view returns (uint256)
getBorrowedOf
viewfunction getBorrowedOf(address user) view returns (uint256)
getPoolTotalCirculation
viewfunction getPoolTotalCirculation() view returns (uint256)
getVaultType
purefunction getVaultType() pure returns (uint8)
PeUSD
viewfunction PeUSD() view returns (address)
totalDepositedAsset
viewfunction totalDepositedAsset() view returns (uint256)
burn
nonpayablefunction burn(address onBehalfOf, uint256 amount)
depositAssetToMint
nonpayablefunction depositAssetToMint(uint256 assetAmount, uint256 mintAmount)
depositEtherToMint
payablefunction depositEtherToMint(uint256 mintAmount) payable
getAssetPrice
nonpayablefunction getAssetPrice() returns (uint256)
liquidation
nonpayablefunction liquidation(address provider, address onBehalfOf, uint256 assetAmount)
mint
nonpayablefunction mint(address onBehalfOf, uint256 amount)
rigidRedemption
nonpayablefunction rigidRedemption(address provider, uint256 peusdAmount, uint256 minReceiveAmount)
withdraw
nonpayablefunction withdraw(address onBehalfOf, uint256 amount)
events
Burn
event Burn(address indexed sponsor, address indexed onBehalfOf, uint256 amount, uint256 timestamp)
DepositAsset
event DepositAsset(address indexed onBehalfOf, address asset, uint256 amount, uint256 timestamp)
DepositEther
event DepositEther(address indexed onBehalfOf, address asset, uint256 etherAmount, uint256 assetAmount, uint256 timestamp)
FeeDistribution
event FeeDistribution(address indexed feeAddress, uint256 feeAmount, uint256 timestamp)
LiquidationRecord
event LiquidationRecord(address indexed provider, address indexed keeper, address indexed onBehalfOf, uint256 eusdamount, uint256 LiquidateAssetAmount, uint256 keeperReward, bool superLiquidation, uint256 timestamp)
Mint
event Mint(address indexed sponsor, address indexed onBehalfOf, uint256 amount, uint256 timestamp)
RigidRedemption
event RigidRedemption(address indexed caller, address indexed provider, uint256 peusdAmount, uint256 assetAmount, uint256 timestamp)
WithdrawAsset
event WithdrawAsset(address indexed sponsor, address asset, address indexed onBehalfOf, uint256 amount, uint256 timestamp)
errors
No errors.
creation bytecode
0x6101206040523480156200001257600080fd5b5060405162002815380380620028158339810160408190526200003591620000fc565b6001600160a01b0380841660a052811660c081905260408051633558a88760e21b8152905185928592859263d562a21c916004808201926020929091908290030181865afa1580156200008c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b2919062000159565b6001600160a01b0390811660805291821660e0525060016005559490941661010052506200017e92505050565b80516001600160a01b0381168114620000f757600080fd5b919050565b600080600080608085870312156200011357600080fd5b6200011e85620000df565b93506200012e60208601620000df565b92506200013e60408601620000df565b91506200014e60608601620000df565b905092959194509250565b6000602082840312156200016c57600080fd5b6200017782620000df565b9392505050565b60805160a05160c05160e051610100516125796200029c6000396000818161056a01528181610783015261133301526000611cfe0152600081816101680152818161084701528181610ba601528181610f5c0152818161117d0152818161146201528181611584015281816116610152818161180c0152818161191301528181611af801528181611b9a0152611f580152600081816101e6015281816102cf015281816103fc015281816104d7015281816105de015281816106c001528181610c8201528181610cc101528181610e2401528181610e9e015281816112ab01528181611e110152611e60015260008181610343015281816109d70152818161171001528181611942015281816119bc0152611b2701526125796000f3fe6080604052600436106101095760003560e01c806396171e5911610095578063abbc421711610064578063abbc4217146102f1578063ca0b785614610311578063e1e21ba114610331578063e54f088014610365578063f3fef3a31461037a57600080fd5b806396171e59146102685780639754d1dc146102885780639dc29fac1461029d578063aabaecd6146102bd57600080fd5b806340c10f19116100dc57806340c10f19146101b75780635c222bad146101d75780635df104721461020a57806369d83b3c1461021f57806375baf37f1461024c57600080fd5b806305ad83081461010e57806317d145a2146101415780632b507df8146101565780632f0bc965146101a2575b600080fd5b34801561011a57600080fd5b5061012e6101293660046122f1565b61039a565b6040519081526020015b60405180910390f35b34801561014d57600080fd5b5061012e6103e4565b34801561016257600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610138565b6101b56101b0366004612313565b610474565b005b3480156101c357600080fd5b506101b56101d236600461232c565b610727565b3480156101e357600080fd5b507f000000000000000000000000000000000000000000000000000000000000000061018a565b34801561021657600080fd5b5061012e61077f565b34801561022b57600080fd5b5061012e61023a3660046122f1565b60016020526000908152604090205481565b34801561025857600080fd5b5060405160018152602001610138565b34801561027457600080fd5b506101b5610283366004612356565b6107df565b34801561029457600080fd5b5060005461012e565b3480156102a957600080fd5b506101b56102b836600461232c565b610d52565b3480156102c957600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b3480156102fd57600080fd5b506101b561030c366004612392565b610da3565b34801561031d57600080fd5b506101b561032c3660046123b4565b610eff565b34801561033d57600080fd5b5061018a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561037157600080fd5b5061012e611326565b34801561038657600080fd5b506101b561039536600461232c565b6113cf565b60006103a582611420565b6001600160a01b0383166000908152600360209081526040808320546002909252909120546103d491906123fd565b6103de91906123fd565b92915050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f9190612410565b905090565b61047c611516565b670de0b6b3a76400003410156104bf5760405162461bcd60e51b815260206004820152600360248201526211139360ea1b60448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054a9190612410565b60405163f340fa0160e01b81523060048201529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f340fa019034906024016000604051808303818588803b1580156105af57600080fd5b505af11580156105c3573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600093507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506370a082319150602401602060405180830381865afa15801561062f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106539190612410565b905061065f8282612429565b336000908152600160205260408120805490919061067e9084906123fd565b9091555050821561069c5761069c333385610697611326565b61156f565b337f6a7b44958c301c33959b506daa1c81df7d298aa58fd6c510f4fd967f0eb87ce87f0000000000000000000000000000000000000000000000000000000000000000346106ea8686612429565b604080516001600160a01b03909416845260208401929092529082015242606082015260800160405180910390a250506107246001600555565b50565b6001600160a01b03821661074d5760405162461bcd60e51b81526004016104b69061243c565b8060000361076d5760405162461bcd60e51b81526004016104b690612459565b61077b338383610697611326565b5050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6aa216c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561044b573d6000803e3d6000fd5b60006107e9611326565b905060006107f68461039a565b6001600160a01b03851660009081526001602052604090205461081a908490612475565b610825906064612475565b61082f919061248c565b60405163355360cb60e21b81523060048201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063d54d832c90602401602060405180830381865afa158015610896573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ba9190612410565b811061092e5760405162461bcd60e51b815260206004820152603a60248201527f426f72726f7765727320636f6c6c61746572616c20726174696f2073686f756c60448201527f642062656c6f7720626164436f6c6c61746572616c526174696f00000000000060648201526084016104b6565b6001600160a01b038416600090815260016020526040902054610952846002612475565b11156109b25760405162461bcd60e51b815260206004820152602960248201527f61206d6178206f662035302520636f6c6c61746572616c2063616e206265206c6044820152681a5c5d5a59185d195960ba1b60648201526084016104b6565b604051636eb1769f60e11b81526001600160a01b0386811660048301523060248301527f0000000000000000000000000000000000000000000000000000000000000000169063dd62ed3e90604401602060405180830381865afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190612410565b151580610a575750336001600160a01b038616145b610ac25760405162461bcd60e51b815260206004820152603660248201527f70726f76696465722073686f756c6420617574686f72697a6520746f2070726f6044820152751d9a5919481b1a5c5d5a59185d1a5bdb881c195554d160521b60648201526084016104b6565b6000670de0b6b3a7640000610ad78486612475565b610ae1919061248c565b9050610aee8686836117ed565b8368056bc75e2d6310000083118015610b0f57506805f68e8131ecf8000083105b15610b355768056bc75e2d63100000610b288487612475565b610b32919061248c565b90505b6805f68e8131ecf800008310610b5f57600a610b5286600b612475565b610b5c919061248c565b90505b6001600160a01b03861660009081526001602052604081208054839290610b87908490612429565b909155505060405163b300a55960e01b815230600482015260009081907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b300a55990602401602060405180830381865afa158015610bf5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c199190612410565b9050336001600160a01b038a1614801590610c585750610c4181670de0b6b3a7640000612475565b610c549068056bc75e2d631000006123fd565b8510155b15610ca9576064610c698289612475565b610c73919061248c565b9150610ca96001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384611c54565b610ce889610cb78486612429565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611c54565b6040805185815260208101859052908101839052600060608201524260808201526001600160a01b03808a169133918c16907fb59dc9737d55b75fc6ca7522e82d6161da5d7c8337b9ab990a5846f95b5ccdad9060a00160405180910390a4505050505050505050565b6001600160a01b038216610d785760405162461bcd60e51b81526004016104b69061243c565b80600003610d985760405162461bcd60e51b81526004016104b690612459565b61077b3383836117ed565b670de0b6b3a7640000821015610e175760405162461bcd60e51b815260206004820152603360248201527f4465706f7369742073686f756c64206e6f74206265206c657373207468616e20604482015272189031b7b63630ba32b930b61030b9b9b2ba1760691b60648201526084016104b6565b610e4c6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085611cbc565b3360009081526001602052604081208054849290610e6b9084906123fd565b90915550508015610e90576000610e80611326565b9050610e8e3333848461156f565b505b604080516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602081018490524281830152905133917ff80e165f76857acc123ffe20b1116e9ec31ad7f2c4ecd6f379a9cc9151b50371919081900360600190a25050565b336001600160a01b03841603610f3d5760405162461bcd60e51b815260206004820152600360248201526243425360e81b60448201526064016104b6565b604051631e24111360e21b81526001600160a01b0384811660048301527f00000000000000000000000000000000000000000000000000000000000000001690637890444c90602401602060405180830381865afa158015610fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc791906124ae565b61101f5760405162461bcd60e51b8152602060048201526024808201527f70726f7669646572206973206e6f74206120526564656d7074696f6e50726f7660448201526334b232b960e11b60648201526084016104b6565b6001600160a01b0383166000908152600260205260409020548211156110995760405162461bcd60e51b815260206004820152602960248201527f7065757364416d6f756e742063616e6e6f7420737572706173732070726f766960448201526819195c9cc81919589d60ba1b60648201526084016104b6565b60006110a3611326565b905060006110b08561039a565b6001600160a01b0386166000908152600160205260409020546110d4908490612475565b6110df906064612475565b6110e9919061248c565b905068056bc75e2d6310000081101561116a5760405162461bcd60e51b815260206004820152603d60248201527f5468652070726f7669646572277320636f6c6c61746572616c20726174696f2060448201527f73686f756c64206265206e6f74206c657373207468616e20313030252e00000060648201526084016104b6565b6111753386866117ed565b6000612710837f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663458f58156040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fd9190612410565b61120990612710612429565b61121b88670de0b6b3a7640000612475565b6112259190612475565b61122f919061248c565b611239919061248c565b9050838110156112705760405162461bcd60e51b8152602060048201526002602482015261115360f21b60448201526064016104b6565b6001600160a01b03861660009081526001602052604081208054839290611298908490612429565b909155506112d290506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611c54565b6040805186815260208101839052428183015290516001600160a01b0388169133917f1a7ab636ab77b4d93c0afba804a009a127e77def45e623e572144ca8f8a03ac59181900360600190a3505050505050565b6000670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6aa216c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b39190612410565b6113bb611cfa565b6113c59190612475565b61046f919061248c565b6001600160a01b0382166113f55760405162461bcd60e51b81526004016104b69061243c565b806000036114155760405162461bcd60e51b81526004016104b690612459565b61077b338383611d5c565b6001600160a01b038116600090815260046020526040812054612710906301e133809061144d9042612429565b604051630440bd9560e21b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631102f65490602401602060405180830381865afa1580156114b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d59190612410565b6001600160a01b0386166000908152600260205260409020546114f89190612475565b6115029190612475565b61150c919061248c565b6103de919061248c565b6002600554036115685760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104b6565b6002600555565b6040516333050e8160e21b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063cc143a0490602401602060405180830381865afa1580156115d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f79190612410565b8260005461160591906123fd565b11156116395760405162461bcd60e51b81526020600482015260036024820152621154d360ea1b60448201526064016104b6565b61164284611ed1565b604051636f086f1360e11b81526001600160a01b0385811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063de10de2690602401600060405180830381600087803b1580156116a557600080fd5b505af11580156116b9573d6000803e3d6000fd5b505050506001600160a01b038416600090815260026020526040812080548492906116e59084906123fd565b90915550506040516340c10f1960e01b81526001600160a01b038481166004830152602482018490527f000000000000000000000000000000000000000000000000000000000000000016906340c10f19906044016020604051808303816000875af1158015611759573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177d91906124ae565b508160008082825461178f91906123fd565b9091555061179f90508482611f43565b604080518381524260208201526001600160a01b0380861692908716917f2f00e3cdd69a77be7ed215ec7b2a36784dd158f921fca79ac29deffa353fe6ee910160405180910390a350505050565b604051636f086f1360e11b81526001600160a01b0383811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063de10de2690602401600060405180830381600087803b15801561185057600080fd5b505af1158015611864573d6000803e3d6000fd5b5050505061187182611ed1565b6001600160a01b038216600090815260036020908152604080832054600290925282205490919083906118a59084906123fd565b10156118d4576001600160a01b0384166000908152600260205260409020546118cf9083906123fd565b6118d6565b825b905081811115611ab9576001600160a01b0384811660009081526003602052604080822091909155516323b872dd60e01b815286821660048201527f000000000000000000000000000000000000000000000000000000000000000082166024820152604481018490527f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd906064016020604051808303816000875af115801561198d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b191906124ae565b506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016639dc29fac866119ec8585612429565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611a37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5b91906124ae565b50611a668282612429565b6001600160a01b03851660009081526002602052604081208054909190611a8e908490612429565b90915550611a9e90508282612429565b600080828254611aae9190612429565b90915550611b989050565b611ac38183612429565b6001600160a01b03858116600090815260036020526040908190209290925590516323b872dd60e01b815286821660048201527f000000000000000000000000000000000000000000000000000000000000000082166024820152604481018390527f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd906064016020604051808303816000875af1158015611b72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9691906124ae565b505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636f4a2cd06040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611bf357600080fd5b505af1925050508015611c04575060015b50604080518281524260208201526001600160a01b0380871692908816917f5d624aa9c148153ab3446c1b154f660ee7701e549fe9b62dab7171b1c80e6fa2910160405180910390a35050505050565b6040516001600160a01b038316602482015260448101829052611cb790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612070565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052611cf49085906323b872dd60e01b90608401611c80565b50505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630fdb11cf6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561044b573d6000803e3d6000fd5b6001600160a01b038316600090815260016020526040902054811115611dd65760405162461bcd60e51b815260206004820152602960248201527f576974686472617720616d6f756e742065786365656473206465706f73697465604482015268321030b6b7bab73a1760b91b60648201526084016104b6565b6001600160a01b03831660009081526001602052604081208054839290611dfe908490612429565b90915550611e3890506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383611c54565b6000611e438461039a565b1115611e5a57611e5a83611e55611326565b611f43565b604080517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811682526020820184905242828401529151848316928616917f31c6c2b083b6c6fb9c8345de5c29efda3ef312a42d1bc0d4a3029465080809c1919081900360600190a3505050565b6001600160a01b03811660009081526004602052604090205442111561072457611efa81611420565b6001600160a01b03821660009081526003602052604081208054909190611f229084906123fd565b90915550506001600160a01b03166000908152600460205260409020429055565b60405163ae91874960e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ae91874990602401602060405180830381865afa158015611fa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fcb9190612410565b611fd48361039a565b6001600160a01b038416600090815260016020526040902054611ff8908490612475565b612003906064612475565b61200d919061248c565b101561077b5760405162461bcd60e51b815260206004820152602c60248201527f636f6c6c61746572616c526174696f2069732042656c6f772073616665436f6c60448201526b6c61746572616c526174696f60a01b60648201526084016104b6565b60006120c5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121459092919063ffffffff16565b90508051600014806120e65750808060200190518101906120e691906124ae565b611cb75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104b6565b6060612154848460008561215c565b949350505050565b6060824710156121bd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104b6565b600080866001600160a01b031685876040516121d991906124f4565b60006040518083038185875af1925050503d8060008114612216576040519150601f19603f3d011682016040523d82523d6000602084013e61221b565b606091505b509150915061222c87838387612237565b979650505050505050565b606083156122a657825160000361229f576001600160a01b0385163b61229f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104b6565b5081612154565b61215483838151156122bb5781518083602001fd5b8060405162461bcd60e51b81526004016104b69190612510565b80356001600160a01b03811681146122ec57600080fd5b919050565b60006020828403121561230357600080fd5b61230c826122d5565b9392505050565b60006020828403121561232557600080fd5b5035919050565b6000806040838503121561233f57600080fd5b612348836122d5565b946020939093013593505050565b60008060006060848603121561236b57600080fd5b612374846122d5565b9250612382602085016122d5565b9150604084013590509250925092565b600080604083850312156123a557600080fd5b50508035926020909101359150565b6000806000606084860312156123c957600080fd5b6123d2846122d5565b95602085013595506040909401359392505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156103de576103de6123e7565b60006020828403121561242257600080fd5b5051919050565b818103818111156103de576103de6123e7565b602080825260039082015262545a4160e81b604082015260600190565b6020808252600290820152615a4160f01b604082015260600190565b80820281158282048414176103de576103de6123e7565b6000826124a957634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156124c057600080fd5b8151801515811461230c57600080fd5b60005b838110156124eb5781810151838201526020016124d3565b50506000910152565b600082516125068184602087016124d0565b9190910192915050565b602081526000825180602084015261252f8160408501602087016124d0565b601f01601f1916919091016040019291505056fea2646970667358221220e380afc94bc33d5128341db48d9d4f547108787f0baf2a011594e2f5fbe62d6864736f6c63430008110033000000000000000000000000cf5ea1b38380f6af39068375516daf40ed70d299000000000000000000000000a35b1b31ce002fbf2058d22f30f95d405200a15b0000000000000000000000004c517d4e2c851ca76d7ec94b805269df0f2201de000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff