0 txs
0 calls
constructor
constructor(address _config, address _priceFeed)
functions
checkExecutionFeasibility
viewfunction checkExecutionFeasibility(address user, address vault) view returns (bool)
configurator
viewfunction configurator() view returns (address)
fee
viewfunction fee() view returns (uint256)
getAssetPrice
viewfunction getAssetPrice(address vault) view returns (uint256)
getCollateralRatio
viewfunction getCollateralRatio(address user, address vault) view returns (uint256)
owner
viewfunction owner() view returns (address)
userRepaymentSettings
viewfunction userRepaymentSettings(address, address) view returns (uint256 triggerCollateralRatio, uint256 expectedCollateralRatio, bool active)
execute
nonpayablefunction execute(address user, address vault)
renounceOwnership
nonpayablefunction renounceOwnership()
setAutoRepayment
nonpayablefunction setAutoRepayment(address[] vaults, tuple[] settings)
setFee
nonpayablefunction setFee(uint256 _fee)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
ExecuteAutoRepayment
event ExecuteAutoRepayment(address indexed user, address indexed vault, address keeper, uint256 repayAmount, uint256 fee, uint256 time)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ServiceFeeChanged
event ServiceFeeChanged(uint256 newFee, uint256 time)
UserSetAutoRepayment
event UserSetAutoRepayment(address indexed user, address indexed vault, uint256 triggerCollateralRatio, uint256 expectedCollateralRatio, bool status)
errors
No errors.
creation bytecode
0x60c060405268056bc75e2d631000006002553480156200001e57600080fd5b5060405162001e3b38038062001e3b8339810160408190526200004191620000d1565b6200004c3362000064565b6001600160a01b039182166080521660a05262000109565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620000cc57600080fd5b919050565b60008060408385031215620000e557600080fd5b620000f083620000b4565b91506200010060208401620000b4565b90509250929050565b60805160a051611cd5620001666000396000610f1801526000818160d301528181610264015281816104110152818161056c01528181610c2801528181610caf01528181611040015281816113aa01526114310152611cd56000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b14610171578063adba1a2414610182578063b3596f07146101d8578063d80aea15146101eb578063ddca3f43146101fe578063f2fde38b1461020757600080fd5b80631b3c039b146100b95780632b507df8146100ce5780633a357a2714610112578063437ccdea1461013357806369fe0e2d14610156578063715018a614610169575b600080fd5b6100cc6100c73660046119e5565b61021a565b005b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b610125610120366004611aa7565b610872565b604051908152602001610109565b610146610141366004611aa7565b610a12565b6040519015158152602001610109565b6100cc610164366004611ae0565b610e3d565b6100cc610eff565b6000546001600160a01b03166100f5565b6101bb610190366004611aa7565b6001602081815260009384526040808520909152918352912080549181015460029091015460ff1683565b604080519384526020840192909252151590820152606001610109565b6101256101e6366004611af9565b610f13565b6100cc6101f9366004611aa7565b611021565b61012560025481565b6100cc610215366004611af9565b611769565b80518251146102565760405162461bcd60e51b8152602060048201526003602482015262414c4960e81b60448201526064015b60405180910390fd5b60005b825181101561086d577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f2afd3998483815181106102a3576102a3611b16565b60200260200101516040518263ffffffff1660e01b81526004016102d691906001600160a01b0391909116815260200190565b602060405180830381865afa1580156102f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103179190611b2c565b6103485760405162461bcd60e51b8152602060048201526002602482015261272b60f11b604482015260640161024d565b81818151811061035a5761035a611b16565b60200260200101516000015182828151811061037857610378611b16565b6020026020010151602001511161040f5760405162461bcd60e51b815260206004820152604f60248201527f546865206578706563746564436f6c6c61746572616c526174696f206e65656460448201527f7320746f20626520686967686572207468616e2074686520747269676765724360648201526e37b63630ba32b930b62930ba34b79760891b608482015260a40161024d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d54d832c84838151811061045057610450611b16565b60200260200101516040518263ffffffff1660e01b815260040161048391906001600160a01b0391909116815260200190565b602060405180830381865afa1580156104a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c49190611b49565b8282815181106104d6576104d6611b16565b6020026020010151600001511161056a5760405162461bcd60e51b815260206004820152604c60248201527f5468652074726967676572436f6c6c61746572616c526174696f206e6565647360448201527f20746f20626520686967686572207468616e206c796272612e626164436f6c6c60648201526b30ba32b930b62930ba34b79760a11b608482015260a40161024d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ae9187498483815181106105ab576105ab611b16565b60200260200101516040518263ffffffff1660e01b81526004016105de91906001600160a01b0391909116815260200190565b602060405180830381865afa1580156105fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061f9190611b49565b82828151811061063157610631611b16565b60200260200101516020015110156106d75760405162461bcd60e51b815260206004820152605a60248201527f546865206578706563746564436f6c6c61746572616c526174696f206e65656460448201527f7320746f2062652067726561746572207468616e206f7220657175616c20746f60648201527f206c796272612e73616665436f6c6c61746572616c526174696f000000000000608482015260a40161024d565b8181815181106106e9576106e9611b16565b602002602001015160016000336001600160a01b03166001600160a01b03168152602001908152602001600020600085848151811061072a5761072a611b16565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548160ff02191690831515021790555090505082818151811061079b5761079b611b16565b60200260200101516001600160a01b0316336001600160a01b03167f4ce027c7d43c64ce4ab89f7bab62d64b3a959078cb24687a66b9d0c5ce0bb6af8484815181106107e9576107e9611b16565b60200260200101516000015185858151811061080757610807611b16565b60200260200101516020015186868151811061082557610825611b16565b6020026020010151604001516040516108539392919092835260208301919091521515604082015260600190565b60405180910390a38061086581611b78565b915050610259565b505050565b60405162b5b06160e31b81526001600160a01b03838116600483015260009183918216906305ad830890602401602060405180830381865afa1580156108bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e09190611b49565b60000361090d577c25179157c93ec73e23fa32aa4f9d3bda934d8ee6a00000000000000000915050610a0c565b60405162b5b06160e31b81526001600160a01b0385811660048301528216906305ad830890602401602060405180830381865afa158015610952573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109769190611b49565b61097f84610f13565b604051631a760ecf60e21b81526001600160a01b0387811660048301528416906369d83b3c90602401602060405180830381865afa1580156109c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109e99190611b49565b6109f39190611b91565b6109fe906064611b91565b610a089190611ba8565b9150505b92915050565b6001600160a01b038083166000908152600160208181526040808420948616845293815283832084516060810186528154815281840154928101929092526002015460ff161515938101849052919214610a70576000915050610a0c565b6000610a7c8585610872565b8251909150811115610a9357600092505050610a0c565b60208201518490600090610aa683610f13565b604051631a760ecf60e21b81526001600160a01b038a811660048301528516906369d83b3c90602401602060405180830381865afa158015610aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b109190611b49565b610b1a9190611b91565b610b25906064611b91565b610b2f9190611ba8565b60025460405162b5b06160e31b81526001600160a01b038a811660048301529293506000928491908616906305ad830890602401602060405180830381865afa158015610b80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba49190611b49565b610bae9190611bca565b610bb89190611bdd565b90506000836001600160a01b03166375baf37f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1e9190611bf0565b60ff1615610cad577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d562a21c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca89190611c13565b610d2f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c742f586040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611c13565b604051636eb1769f60e11b81526001600160a01b038b81166004830152306024830152919250839183169063dd62ed3e90604401602060405180830381865afa158015610d80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da49190611b49565b1080610e1a57506040516370a0823160e01b81526001600160a01b038a811660048301528391908316906370a0823190602401602060405180830381865afa158015610df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e189190611b49565b105b15610e2e5760009650505050505050610a0c565b50600198975050505050505050565b610e456117e2565b681b1ae4d6e2ef5000008111158015610e67575068056bc75e2d631000008110155b610ebf5760405162461bcd60e51b8152602060048201526024808201527f466565206d757374206265206265747765656e2031303020616e642035303020604482015263195554d160e21b606482015260840161024d565b6002819055604080518281524260208201527f6447894e1284d506804c4712de29291e4bac8c5f165551941531389054d06742910160405180910390a150565b610f076117e2565b610f11600061183c565b565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610f74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f989190611c4f565b5050509150506305f5e10081846001600160a01b0316635df104726040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fe2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110069190611b49565b6110109190611b91565b61101a9190611ba8565b9392505050565b60405163f2afd39960e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063f2afd39990602401602060405180830381865afa158015611087573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ab9190611b2c565b6110dc5760405162461bcd60e51b8152602060048201526002602482015261272b60f11b604482015260640161024d565b6001600160a01b03808316600090815260016020818152604080842094861684529381529183902083516060810185528154815281830154938101939093526002015460ff1615159282018390529091146111925760405162461bcd60e51b815260206004820152603060248201527f546865207573657220686173206e6f7420656e61626c6564207468652061757460448201526f1bdb585d1a58c81c995c185e5b595b9d60821b606482015260840161024d565b600061119e8484610872565b82519091508111156112225760405162461bcd60e51b815260206004820152604160248201527f5468652075736572277320636f6c6c61746572616c52617465206973206e6f7460448201527f2062656c6f7720746865207472696767657220636f6c6c61746572616c5261746064820152606560f81b608482015260a40161024d565b6020820151839060009061123583610f13565b604051631a760ecf60e21b81526001600160a01b0389811660048301528516906369d83b3c90602401602060405180830381865afa15801561127b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129f9190611b49565b6112a99190611b91565b6112b4906064611b91565b6112be9190611ba8565b60405162b5b06160e31b81526001600160a01b0388811660048301529192506000918391908516906305ad830890602401602060405180830381865afa15801561130c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113309190611b49565b61133a9190611bca565b90506000836001600160a01b03166375baf37f6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561137c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113a09190611bf0565b60ff161561142f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d562a21c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142a9190611c13565b6114b1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630c742f586040518163ffffffff1660e01b8152600401602060405180830381865afa15801561148d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b19190611c13565b9050806001600160a01b03166323b872dd8930600254866114d29190611bdd565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af1158015611526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061154a9190611b2c565b50604051632770a7eb60e21b81526001600160a01b03898116600483015260248201849052851690639dc29fac90604401600060405180830381600087803b15801561159557600080fd5b505af11580156115a9573d6000803e3d6000fd5b50506002546040516370a0823160e01b8152306004820152600093509091506001600160a01b038416906370a0823190602401602060405180830381865afa1580156115f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161d9190611b49565b1061162a57600254611692565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa15801561166e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116929190611b49565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156116e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117069190611b2c565b5060408051338152602081018590529081018290524260608201526001600160a01b03808a1691908b16907f36163d6a12b6cc2bd0c656fb5d7df1129b849dba89a8b713d8e87bc099c666479060800160405180910390a3505050505050505050565b6117716117e2565b6001600160a01b0381166117d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161024d565b6117df8161183c565b50565b6000546001600160a01b03163314610f115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161024d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156118c5576118c561188c565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156118f4576118f461188c565b604052919050565b600067ffffffffffffffff8211156119165761191661188c565b5060051b60200190565b6001600160a01b03811681146117df57600080fd5b80151581146117df57600080fd5b600082601f83011261195457600080fd5b81356020611969611964836118fc565b6118cb565b8281526060928302850182019282820191908785111561198857600080fd5b8387015b858110156119d85781818a0312156119a45760008081fd5b6119ac6118a2565b8135815285820135868201526040808301356119c781611935565b90820152845292840192810161198c565b5090979650505050505050565b600080604083850312156119f857600080fd5b823567ffffffffffffffff80821115611a1057600080fd5b818501915085601f830112611a2457600080fd5b81356020611a34611964836118fc565b82815260059290921b84018101918181019089841115611a5357600080fd5b948201945b83861015611a7a578535611a6b81611920565b82529482019490820190611a58565b96505086013592505080821115611a9057600080fd5b50611a9d85828601611943565b9150509250929050565b60008060408385031215611aba57600080fd5b8235611ac581611920565b91506020830135611ad581611920565b809150509250929050565b600060208284031215611af257600080fd5b5035919050565b600060208284031215611b0b57600080fd5b813561101a81611920565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611b3e57600080fd5b815161101a81611935565b600060208284031215611b5b57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600060018201611b8a57611b8a611b62565b5060010190565b8082028115828204841417610a0c57610a0c611b62565b600082611bc557634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610a0c57610a0c611b62565b80820180821115610a0c57610a0c611b62565b600060208284031215611c0257600080fd5b815160ff8116811461101a57600080fd5b600060208284031215611c2557600080fd5b815161101a81611920565b805169ffffffffffffffffffff81168114611c4a57600080fd5b919050565b600080600080600060a08688031215611c6757600080fd5b611c7086611c30565b9450602086015193506040860151925060608601519150611c9360808701611c30565b9050929550929590935056fea2646970667358221220bd079ba2f408d6db5bf52ac20eeb35bc3953e6b07e2a4816d9cb1f03c82bd87a64736f6c63430008110033000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419