CreditManager
Verified contract
Active on
Ethereum with 1,235 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x444c…9c04
0x790d…df29
Balances ($0.00)
No balances found for "CreditManager"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 18577104 | a year ago | | | 0 | 0.016314643 | |
| 16914375 | 2 years ago | | | 0 | 0.0010902963 | |
| 16914372 | 2 years ago | | | 0 | 0.0059868755 | |
| 16880598 | 2 years ago | | | 0 | 0.0037838281 | |
| 16626302 | 2 years ago | | | 0 | 0.0045013242 | |
| 16611623 | 2 years ago | | | 0 | 0.0045023745 | |
| 16611603 | 2 years ago | | | 0 | 0.0047610572 | |
| 16582729 | 2 years ago | | | 0 | 0.011831900 | |
| 16571941 | 2 years ago | | | 0 | 0.014590112 | |
| 16312424 | 2 years ago | | | 0 | 0.0048612792 |
ABI
ABI objects
Getter at block 21161136
creditFilter() view returns (address)
0x790d170c12e62ada6cd2d409a50177680c4ddf29
defaultSwapContract() view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
feeInterest() view returns (uint256)
1000
feeLiquidation() view returns (uint256)
200
liquidationDiscount() view returns (uint256)
9500
maxAmount() view returns (uint256)
31250000000000000000
maxLeverageFactor() view returns (uint256)
300
minAmount() view returns (uint256)
300000000000000000
minHealthFactor() view returns (uint256)
12400
paused() view returns (bool)
true
poolService() view returns (address)
0xb03670c20f87f2169a7c4ebe35746007e9575901
underlyingToken() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
version() view returns (uint256)
1
wethAddress() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
wethGateway() view returns (address)
0x4f952c4c5415b2609899abdc2f8f352f600d14d6
Read-only
_calcClosePayments(address creditAccount, uint256 totalValue, bool isLiquidated) view returns (uint256 _borrowedAmount, uint256 amountToPool, uint256 remainingFunds, uint256 profit, uint256 loss)
_calcClosePaymentsPure(uint256 totalValue, bool isLiquidated, uint256 borrowedAmount, uint256 cumulativeIndexAtCreditAccountOpen_RAY, uint256 cumulativeIndexNow_RAY) view returns (uint256 _borrowedAmount, uint256 amountToPool, uint256 remainingFunds, uint256 profit, uint256 loss)
calcRepayAmount(address borrower, bool isLiquidated) view returns (uint256)
creditAccounts(address) view returns (address)
getCreditAccountOrRevert(address borrower) view returns (address)
hasOpenedCreditAccount(address borrower) view returns (bool)
State-modifying
Events addCollateral(address onBehalfOf, address token, uint256 amount)
approve(address targetContract, address token)
closeCreditAccount(address to, struct DataTypesExchange[] paths)
executeOrder(address borrower, address target, bytes data) returns (bytes)
increaseBorrowedAmount(uint256 amount)
liquidateCreditAccount(address borrower, address to, bool force)
openCreditAccount(uint256 amount, address onBehalfOf, uint256 leverageFactor, uint256 referralCode)
pause()
provideCreditAccountAllowance(address creditAccount, address targetContract, address token)
repayCreditAccount(address to)
repayCreditAccountETH(address borrower, address to) returns (uint256)
setParams(uint256 _minAmount, uint256 _maxAmount, uint256 _maxLeverageFactor, uint256 _feeInterest, uint256 _feeLiquidation, uint256 _liquidationDiscount)
transferAccountOwnership(address newOwner)
unpause()
AddCollateral(address indexed onBehalfOf, address indexed token, uint256 value)
CloseCreditAccount(address indexed owner, address indexed to, uint256 remainingFunds)
ExecuteOrder(address indexed borrower, address indexed target)
IncreaseBorrowedAmount(address indexed borrower, uint256 amount)
LiquidateCreditAccount(address indexed owner, address indexed liquidator, uint256 remainingFunds)
NewParameters(uint256 minAmount, uint256 maxAmount, uint256 maxLeverage, uint256 feeInterest, uint256 feeLiquidation, uint256 liquidationDiscount)
OpenCreditAccount(address indexed sender, address indexed onBehalfOf, address indexed creditAccount, uint256 amount, uint256 borrowAmount, uint256 referralCode)
Paused(address account)
RepayCreditAccount(address indexed owner, address indexed to)
TransferAccount(address indexed oldOwner, address indexed newOwner)
Unpaused(address account)
constructor(address _addressProvider, uint256 _minAmount, uint256 _maxAmount, uint256 _maxLeverage, address _poolService, address _creditFilterAddress, address _defaultSwapContract)
This contract contains no fallback and receive objects.
This contract contains no error objects.