0 txs
0 calls
constructor
constructor(address _eusd, address _usdc, address _curvePool)
functions
active
viewfunction active() view returns (bool)
curvePool
viewfunction curvePool() view returns (address)
EUSD
viewfunction EUSD() view returns (address)
getTotalAsset
viewfunction getTotalAsset() view returns (uint256)
owner
viewfunction owner() view returns (address)
totalBorrowed
viewfunction totalBorrowed() view returns (uint256)
USDC
viewfunction USDC() view returns (address)
claimTreasuryProfits
nonpayablefunction claimTreasuryProfits(address to)
expandBalanceSheet
nonpayablefunction expandBalanceSheet(uint256 amount)
redeem
nonpayablefunction redeem(uint256 amount)
reduceBalanceSheet
nonpayablefunction reduceBalanceSheet(uint256 amount)
renounceOwnership
nonpayablefunction renounceOwnership()
setActivationStatus
nonpayablefunction setActivationStatus(bool _bool)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
ActivationStatus
event ActivationStatus(bool active, uint256 time)
ClaimTreasuryProfits
event ClaimTreasuryProfits(address to, uint256 amount, uint256 time)
ExpandBalanceSheet
event ExpandBalanceSheet(uint256 borrowAmount, uint256 receivedAmount, uint256 time)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Redeem
event Redeem(address user, uint256 eUSDAmount, uint256 time)
ReduceBalanceSheet
event ReduceBalanceSheet(uint256 repayAmount, uint256 reduceAmount, uint256 time)
errors
No errors.
creation bytecode
0x60806040526003805460ff60a01b1916600160a01b17905534801561002357600080fd5b5060405161113e38038061113e833981016040819052610042916100f9565b61004b3361008d565b600180546001600160a01b039485166001600160a01b03199182161790915560028054938516938216939093179092556003805491909316911617905561013c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100f457600080fd5b919050565b60008060006060848603121561010e57600080fd5b610117846100dd565b9250610125602085016100dd565b9150610133604085016100dd565b90509250925092565b610ff38061014b6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c578063a118c9a711610066578063a118c9a7146101c9578063db006a75146101dc578063ea58c644146101ef578063f2fde38b1461020257600080fd5b8063715018a61461019d57806389a30271146101a55780638da5cb5b146101b857600080fd5b80632768385d116100c85780632768385d146101585780634c19386c1461016e57806355b9d3b1146101775780635dc362c21461018a57600080fd5b806302fb0c5e146100ef5780630c0f7abb14610118578063218751b21461012d575b600080fd5b60035461010390600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b61012b610126366004610e98565b610215565b005b600354610140906001600160a01b031681565b6040516001600160a01b03909116815260200161010f565b6101606105a2565b60405190815260200161010f565b61016060045481565b61012b610185366004610eb1565b610614565b61012b610198366004610e98565b610858565b61012b610ba2565b600254610140906001600160a01b031681565b6000546001600160a01b0316610140565b61012b6101d7366004610eef565b610bb6565b61012b6101ea366004610e98565b610c17565b600154610140906001600160a01b031681565b61012b610210366004610eb1565b610d75565b600354600160a01b900460ff166102605760405162461bcd60e51b815260040161025790602080825260049082015263053544f560e41b604082015260600190565b60405180910390fd5b610268610dee565b6001546040516340c10f1960e01b8152306004820152602481018390526001600160a01b03909116906340c10f19906044016020604051808303816000875af11580156102b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102dd9190610f0c565b5060015460035460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af1158015610333573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103579190610f25565b506002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156103a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c59190610f0c565b6003549091506001600160a01b031663a6417ed660006002856103ed64e8d4a5100082610f58565b6040516001600160e01b031960e087901b168152600f94850b60048201529290930b6024830152604482015260648101919091526084016020604051808303816000875af1158015610443573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104679190610f0c565b506002546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156104b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d99190610f0c565b6104e39190610f7a565b90506104f464e8d4a5100084610f58565b81116105425760405162461bcd60e51b815260206004820152601e60248201527f65555344206d75737420626520736f6c642061742061207072656d69756d00006044820152606401610257565b82600460008282546105549190610f93565b9091555050604080518481526020810183905242918101919091527fe5898644ede53471001b05d5deb9bce41f2df6884680de42c9edca1fcc047c3f906060015b60405180910390a1505050565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156105eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060f9190610f0c565b905090565b61061c610dee565b600064e8d4a510006004546106319190610f58565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610679573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069d9190610f0c565b6106a79190610f7a565b60025460405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905292935091169063a9059cbb906044016020604051808303816000875af11580156106fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107209190610f25565b506001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e9190610f0c565b9050801561080f5760015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af11580156107e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080d9190610f25565b505b604080516001600160a01b03851681526020810184905242918101919091527ff59fbda23b19f5c810326afb2d601f0a991398be16322ea39b0c58dfe3e1847d90606001610595565b600354600160a01b900460ff1661089a5760405162461bcd60e51b815260040161025790602080825260049082015263053544f560e41b604082015260600190565b60025460035460405163095ea7b360e01b81526001600160a01b0391821660048201526024810184905291169063095ea7b3906044016020604051808303816000875af11580156108ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109139190610f25565b506003546001600160a01b031663a6417ed660026000846109398164e8d4a51000610fa6565b6040516001600160e01b031960e087901b168152600f94850b60048201529290930b6024830152604482015260648101919091526084016020604051808303816000875af115801561098f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b39190610f0c565b506001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a219190610f0c565b9050610a328264e8d4a51000610fa6565b8111610a805760405162461bcd60e51b815260206004820152601e60248201527f55534443206d75737420626520736f6c642061742061207072656d69756d00006044820152606401610257565b806004541015610ad25760405162461bcd60e51b815260206004820152601760248201527f446562742063616e6e6f74206265206f766572706169640000000000000000006044820152606401610257565b600154604051632770a7eb60e21b8152306004820152602481018390526001600160a01b0390911690639dc29fac906044016020604051808303816000875af1158015610b23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b479190610f0c565b508060046000828254610b5a9190610f7a565b90915550506040805182815260208101849052428183015290517f3b887846a3d8fdd1f57872df32928ea30304c19f3153cb87eaaa62bf1b5314369181900360600190a15050565b610baa610dee565b610bb46000610e48565b565b610bbe610dee565b6003805460ff60a01b1916600160a01b83151590810291909117909155604080519182524260208301527f8368fb5bd63dd3a18fc535d8187f5e98f9e7d4504fe1e6742ef2c8548ae1c48691015b60405180910390a150565b600154604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac906044016020604051808303816000875af1158015610c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c8c9190610f0c565b508060046000828254610c9f9190610f7a565b90915550506002546001600160a01b031663a9059cbb33610cc564e8d4a5100085610f58565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d349190610f25565b50604080513381526020810183905242918101919091527fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a92990606001610c0c565b610d7d610dee565b6001600160a01b038116610de25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610257565b610deb81610e48565b50565b6000546001600160a01b03163314610bb45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610257565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610eaa57600080fd5b5035919050565b600060208284031215610ec357600080fd5b81356001600160a01b0381168114610eda57600080fd5b9392505050565b8015158114610deb57600080fd5b600060208284031215610f0157600080fd5b8135610eda81610ee1565b600060208284031215610f1e57600080fd5b5051919050565b600060208284031215610f3757600080fd5b8151610eda81610ee1565b634e487b7160e01b600052601160045260246000fd5b600082610f7557634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610f8d57610f8d610f42565b92915050565b80820180821115610f8d57610f8d610f42565b8082028115828204841417610f8d57610f8d610f4256fea2646970667358221220d680d3e71f3d22c0ca501f39541a5d61b423a174b5e74b1722ac5f0a216f0f1d64736f6c63430008110033000000000000000000000000df3ac4f479375802a821f7b7b46cd7eb5e4262cc000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000002673099769201c08e9a5e63b25fbaf25541a6557