CreditFacade
Verified contract
Active on
Ethereum with 107 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
No balances found for "CreditFacade"
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19752044 | 7 months ago | | | 0 | 0.0082576274 | |
| 19752041 | 7 months ago | | | 0 | 0.0014513081 | |
| 19695992 | 7 months ago | | | 0 | 0.0011715179 | |
| 19695656 | 7 months ago | | | 0 | 0.0021504332 | |
| 19316837 | 9 months ago | | | 0 | 0.030570731 | |
| 19109300 | 10 months ago | | | 0 | 0.0019034028 | |
| 19109293 | 10 months ago | | | 0 | 0.0026373502 | |
| 19026454 | a year ago | | | 0 | 0.056297283 | |
| 19026439 | a year ago | | | 0 | 0.011913540 | |
| 18923226 | a year ago | | | 0 | 0.0070044869 |
ABI
ABI objects
Getter at block 21321539
blacklistHelper() view returns (address)
0xffbf344741654a1b9ab1286cf05a42f275f67839
creditManager() view returns (address)
0x95357303f995e184a7998da6c6ea35cc728a1900
degenNFT() view returns (address)
0xb829a5b349b01fc71afe46e50dd6ec0222a6e599
expirable() view returns (bool)
false
getTotalBorrowedInBlock() view returns (uint64 blockLastUpdate, uint128 borrowedInBlock)
(blockLastUpdate=0, borrowedInBlock=0)
isBlacklistableUnderlying() view returns (bool)
true
limits() view returns (uint128 minBorrowedAmount, uint128 maxBorrowedAmount)
(minBorrowedAmount=60000000000, maxBorrowedAmount=1000000000000)
lossParams() view returns (uint128 currentCumulativeLoss, uint128 maxCumulativeLoss)
(currentCumulativeLoss=0, maxCumulativeLoss=0)
params() view returns (uint128 maxBorrowedAmountPerBlock, bool isIncreaseDebtForbidden, uint40 expirationDate, uint16 emergencyLiquidationDiscount)
(maxBorrowedAmountPerBlock=2000000000000, isIncreaseDebtForbidden=false, expirationDate=0, emergencyLiquidationDiscount=9600)
pool() view returns (address)
0x86130bdd69143d8a4e5fc50bf4323d48049e98e4
totalDebt() view returns (uint128 currentTotalDebt, uint128 totalDebtLimit)
(currentTotalDebt=3600850000000, totalDebtLimit=33320000000000)
underlying() view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
version() view returns (uint256)
220
wethAddress() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
whitelisted() view returns (bool)
true
Read-only
calcCreditAccountHealthFactor(address creditAccount) view returns (uint256 hf)
calcTotalValue(address creditAccount) view returns (uint256 total, uint256 twv)
hasOpenedCreditAccount(address borrower) view returns (bool)
isTokenAllowed(address token) view returns (bool allowed)
transfersAllowed(address, address) view returns (bool)
State-modifying
Events addCollateral(address onBehalfOf, address token, uint256 amount) payable
approveAccountTransfer(address from, bool state)
closeCreditAccount(address to, uint256 skipTokenMask, struct MultiCall[] calls) payable
closeCreditAccount(address to, uint256 skipTokenMask, bool, struct MultiCall[] calls) payable
liquidateCreditAccount(address borrower, address to, uint256 skipTokenMask, struct MultiCall[] calls) payable
liquidateCreditAccount(address borrower, address to, uint256 skipTokenMask, bool, struct MultiCall[] calls) payable
liquidateExpiredCreditAccount(address borrower, address to, uint256 skipTokenMask, struct MultiCall[] calls) payable
liquidateExpiredCreditAccount(address borrower, address to, uint256 skipTokenMask, bool, struct MultiCall[] calls) payable
multicall(struct MultiCall[] calls) payable
openCreditAccount(uint256 amount, address onBehalfOf, uint16 leverageFactor, uint16 referralCode) payable
openCreditAccountMulticall(uint256 borrowedAmount, address onBehalfOf, struct MultiCall[] calls, uint16 referralCode) payable
resetCumulativeLoss()
setCreditAccountLimits(uint128 _minBorrowedAmount, uint128 _maxBorrowedAmount)
setEmergencyLiquidationDiscount(uint16 newDiscount)
setExpirationDate(uint40 newExpirationDate)
setIncreaseDebtForbidden(bool _mode)
setLimitPerBlock(uint128 newLimit)
setMaxCumulativeLoss(uint128 _maxCumulativeLoss)
setTotalDebtParams(uint128 newCurrentTotalDebt, uint128 newLimit)
transferAccountOwnership(address to)
AddCollateral(address indexed onBehalfOf, address indexed token, uint256 value)
BlacklistHelperSet(address indexed blacklistHelper)
CloseCreditAccount(address indexed borrower, address indexed to)
DecreaseBorrowedAmount(address indexed borrower, uint256 amount)
IncreaseBorrowedAmount(address indexed borrower, uint256 amount)
IncurLossOnLiquidation(uint256 loss)
LiquidateCreditAccount(address indexed borrower, address indexed liquidator, address indexed to, uint256 remainingFunds)
LiquidateExpiredCreditAccount(address indexed borrower, address indexed liquidator, address indexed to, uint256 remainingFunds)
MultiCallFinished()
MultiCallStarted(address indexed borrower)
OpenCreditAccount(address indexed onBehalfOf, address indexed creditAccount, uint256 borrowAmount, uint16 referralCode)
TokenDisabled(address indexed borrower, address indexed token)
TokenEnabled(address indexed borrower, address indexed token)
TransferAccount(address indexed oldOwner, address indexed newOwner)
TransferAccountAllowed(address indexed from, address indexed to, bool state)
UnderlyingSentToBlacklistHelper(address indexed borrower, uint256 amount)
constructor(address _creditManager, address _degenNFT, address _blacklistHelper, bool _expirable)
This contract contains no fallback and receive objects.
AccountTransferNotAllowedException()
ActionProhibitedWithForbiddenTokensException()
AdaptersOrCreditFacadeOnlyException()
AllowanceFailedException()
BalanceLessThanMinimumDesiredException(address arg0)
BorrowAmountOutOfLimitsException()
BorrowedBlockLimitException()
CantLiquidateNonExpiredException()
CantLiquidateWithSuchHealthFactorException()
CantTransferLiquidatableAccountException()
CreditConfiguratorOnlyException()
CreditFacadeOnlyException()
ExpectedBalancesAlreadySetException()
ForbiddenDuringClosureException()
HasNoOpenedAccountException()
IncorrectCallDataException()
IncreaseAndDecreaseForbiddenInOneCallException()
IncreaseDebtForbiddenException()
LiquiditySanityCheckException()
NotAllowedForBlacklistedAddressException()
NotAllowedInWhitelistedMode()
NotAllowedWhenNotExpirableException()
NotEnoughCollateralException()
OpenAccountNotAllowedAfterExpirationException()
ReentrancyLockException()
TargetContractNotAllowedException()
TokenAlreadyAddedException()
TokenNotAllowedException()
TooManyEnabledTokensException()
TooManyTokensException()
UnknownMethodException()
ZeroAddressException()
ZeroAddressOrUserAlreadyHasAccountException()