DebtRepayer

Verified contract

Active on Ethereum with 61 txns
Deployed by via 0xdfb7eaac at 15448213
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $46,057.46
ERC-20
Value $471.02
0xc4a3e999060cccf541c0139df49039fa06127b70f2a75f28dae04335120a4a14
0x9aee9955517fdd04734da0faabb351bc89280c7ab33f4501e68e0d9087d49770
0xf9f4e3687619060c9f943d8e0640748063c2c01a3825fe9530bbf0143fa35d19
0x58c9ed4439a53369ca4f7ba1b3f71f0def65f45265bd6213e6a98a40c4c123e6
0x68efe376caac9c5112982b33ffd22c8e2d4c7a7ea9c7b47083ddfed32a926420
0x5bf8294f1cbae120ec84d91e08c67eddf01f5f6cf126beff7b02ab38dfb192de
0x687e74c7e78aa5b59922d5f76e389868119e866a0ed65c1aa5f776bb260fb1be
0xae6ee6dc4d5d168893cfd2fbf7ede200b2a91006a24eafaa137f7fe6ecb4a2bc
0xb72a266ab899b54746d4f5497a7631ed8c807a67e374d2748e72b0cbe8b5610f
0xe40897f2b4e5c1f2f2de77daacf307e646e76d4a0a28c53f8846b40c34d9fbe6

Functions
Getter at block 21392031
anBtc(view returns (address)
0x17786f3813e6ba35343211bd8fe18ec4de14f28b
anEth(view returns (address)
0x697b4acaa24430f254224eb794d2a85ba1fa1fb8
anYfi(view returns (address)
0xde2af899040536884e062d3a334f2dd36f34b4a4
baseline(view returns (uint256)
10000
controller(view returns (address)
0x926df14a23be491164dcf93f4c468a50ef659d5b
governance(view returns (address)
0x926df14a23be491164dcf93f4c468a50ef659d5b
maxDiscount(view returns (uint256)
8000
treasury(view returns (address)
0x9d5df30f475cea915b1ed4c0cca59255c897b61b
zeroDiscountReserveThreshold(view returns (uint256)
1500
Read-only
amountOut(address anTokenaddress underlyinguint256 amountview returns (uint256uint256)
convertToUnderlying(address anTokenuint256 amountview returns (uint256)
currentDiscount(address anTokenview returns (uint256)
remainingDebt(address anTokenview returns (uint256)
State-modifying
sellDebt(address anTokenuint256 amountuint256 minOut
setController(address newController
setGovernance(address newGovernance
setMaxDiscount(uint256 newMaxDiscount
setTreasury(address newTreasury
setZeroDiscountReserveThreshold(uint256 newZeroDiscountReserveThreshold
sweepTokens(address tokenuint256 amount
Events
debtRepayment(address underlyinguint256 receiveAmountuint256 paidAmount
Constructor
constructor(uint256 decimalsuint256 maxDiscount_uint256 zeroDiscountReserveThreshold_address governance_address controller_address treasury_
Fallback and receive
receive(
Errors

This contract contains no error objects.