CreditManager
Verified contract
Active on
Ethereum with 930 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x444c…9c04
0x301e…4383
Balances ($0.00)
No balances found for "CreditManager"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 18437845 | a year ago | | | 0 | 0.0069215668 | |
| 18378950 | a year ago | | | 0 | 0.010044913 | |
| 17346994 | a year ago | | | 0 | 0.010471445 | |
| 16734266 | 2 years ago | | | 0 | 0.013688443 | |
| 16389465 | 2 years ago | | | 0 | 0.0070491849 | |
| 16325144 | 2 years ago | | | 0 | 0.0064061270 | |
| 16297743 | 2 years ago | | | 0 | 0.0077821970 | |
| 16297732 | 2 years ago | | | 0 | 0.0075315389 | |
| 16275654 | 2 years ago | | | 0 | 0.0087371562 | |
| 16246864 | 2 years ago | | | 0 | 0.0091823700 |
ABI
ABI objects
Getter at block 20857830
creditFilter() view returns (address)
0x301e7ed8ac816747a65cf67d8901659e637a4383
defaultSwapContract() view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
feeInterest() view returns (uint256)
1000
feeLiquidation() view returns (uint256)
200
liquidationDiscount() view returns (uint256)
9500
maxAmount() view returns (uint256)
125000000000
maxLeverageFactor() view returns (uint256)
300
minAmount() view returns (uint256)
1000000000
minHealthFactor() view returns (uint256)
12400
paused() view returns (bool)
true
poolService() view returns (address)
0x86130bdd69143d8a4e5fc50bf4323d48049e98e4
underlyingToken() view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
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.