CreditFacade

Verified contract

Active on Ethereum with 92 txns
Deployed by via 0xc7eb1274 at 17479013
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "CreditFacade"

0xa027c35c41fbf4e87adaa3c0ea7299164492bb45c2790472f1180e4007fdf06c
0x1a102b22d5b228fb0d82c9b66b2cb55c8faf2a7a7b1c911873444a474e70ac6f
0xc8757734ce4d4666f07faa13c3e4eda03fbb1015a8c1b14fd680e7ed6c1ceffa
0x766cf10dce6f9ef4f85e23a999354f000a5ab72d41393ae3e8806cdd7b712bbf
0x03ed44b224b4d972557061104d78d77af2cd18351460e760b9a8da38b2e17414
0xa6cc10c4251a2f7b382fc212f772a831f7f5116cf678a3eed76ffa6ec9a8ce2e
0xf8fd2fe7030463a9f674162b1a795a04642a9836d77ea1bb4b461377c4a3dd84
0xb75c7dcdacc295908cfeeb67129f776f5c5d5dc974e27b8eb73f3a13149ad550
0xda23826c0bc20aca14b56e0cb3abd33c99f58499ad71c5e16d44575cc9b50091
0xf428488dad6c1e566d923b319f4cdfa63d1c3b3b791fd64c275e16ea9ac5f53b

Functions
Getter at block 21225177
blacklistHelper(view returns (address)
0xffbf344741654a1b9ab1286cf05a42f275f67839
creditManager(view returns (address)
0x95357303f995e184a7998da6c6ea35cc728a1900
degenNFT(view returns (address)
0xb829a5b349b01fc71afe46e50dd6ec0222a6e599
expirable(view returns (bool)
false
getTotalBorrowedInBlock(view returns (uint64 blockLastUpdateuint128 borrowedInBlock)
(blockLastUpdate=0, borrowedInBlock=0)
isBlacklistableUnderlying(view returns (bool)
true
limits(view returns (uint128 minBorrowedAmountuint128 maxBorrowedAmount)
(minBorrowedAmount=60000000000, maxBorrowedAmount=1000000000000)
lossParams(view returns (uint128 currentCumulativeLossuint128 maxCumulativeLoss)
(currentCumulativeLoss=0, maxCumulativeLoss=1000000000000)
params(view returns (uint128 maxBorrowedAmountPerBlockbool isIncreaseDebtForbiddenuint40 expirationDateuint16 emergencyLiquidationDiscount)
(maxBorrowedAmountPerBlock=2000000000000, isIncreaseDebtForbidden=false, expirationDate=0, emergencyLiquidationDiscount=9600)
pool(view returns (address)
0x86130bdd69143d8a4e5fc50bf4323d48049e98e4
totalDebt(view returns (uint128 currentTotalDebtuint128 totalDebtLimit)
(currentTotalDebt=5716850000000, totalDebtLimit=33320000000000)
underlying(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
version(view returns (uint256)
210
wethAddress(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
whitelisted(view returns (bool)
true
Read-only
calcCreditAccountHealthFactor(address creditAccountview returns (uint256 hf)
calcTotalValue(address creditAccountview returns (uint256 totaluint256 twv)
hasOpenedCreditAccount(address borrowerview returns (bool)
isTokenAllowed(address tokenview returns (bool allowed)
transfersAllowed(addressaddressview returns (bool)
State-modifying
addCollateral(address onBehalfOfaddress tokenuint256 amountpayable 
approveAccountTransfer(address frombool state
closeCreditAccount(address touint256 skipTokenMaskstruct MultiCall[] callspayable 
closeCreditAccount(address touint256 skipTokenMaskboolstruct MultiCall[] callspayable 
liquidateCreditAccount(address borroweraddress touint256 skipTokenMaskstruct MultiCall[] callspayable 
liquidateCreditAccount(address borroweraddress touint256 skipTokenMaskboolstruct MultiCall[] callspayable 
liquidateExpiredCreditAccount(address borroweraddress touint256 skipTokenMaskstruct MultiCall[] callspayable 
liquidateExpiredCreditAccount(address borroweraddress touint256 skipTokenMaskboolstruct MultiCall[] callspayable 
multicall(struct MultiCall[] callspayable 
openCreditAccount(uint256 amountaddress onBehalfOfuint16 leverageFactoruint16 referralCodepayable 
openCreditAccountMulticall(uint256 borrowedAmountaddress onBehalfOfstruct MultiCall[] callsuint16 referralCodepayable 
resetCumulativeLoss(
setCreditAccountLimits(uint128 _minBorrowedAmountuint128 _maxBorrowedAmount
setEmergencyLiquidationDiscount(uint16 newDiscount
setExpirationDate(uint40 newExpirationDate
setIncreaseDebtForbidden(bool _mode
setLimitPerBlock(uint128 newLimit
setMaxCumulativeLoss(uint128 _maxCumulativeLoss
setTotalDebtParams(uint128 newCurrentTotalDebtuint128 newLimit
transferAccountOwnership(address to
Events
AddCollateral(address indexed onBehalfOfaddress indexed tokenuint256 value
BlacklistHelperSet(address indexed blacklistHelper
CloseCreditAccount(address indexed borroweraddress indexed to
DecreaseBorrowedAmount(address indexed borroweruint256 amount
IncreaseBorrowedAmount(address indexed borroweruint256 amount
IncurLossOnLiquidation(uint256 loss
LiquidateCreditAccount(address indexed borroweraddress indexed liquidatoraddress indexed touint256 remainingFunds
LiquidateExpiredCreditAccount(address indexed borroweraddress indexed liquidatoraddress indexed touint256 remainingFunds
MultiCallFinished(
MultiCallStarted(address indexed borrower
OpenCreditAccount(address indexed onBehalfOfaddress indexed creditAccountuint256 borrowAmountuint16 referralCode
TokenDisabled(address indexed borroweraddress indexed token
TokenEnabled(address indexed borroweraddress indexed token
TransferAccount(address indexed oldOwneraddress indexed newOwner
TransferAccountAllowed(address indexed fromaddress indexed tobool state
UnderlyingSentToBlacklistHelper(address indexed borroweruint256 amount
Constructor
constructor(address _creditManageraddress _degenNFTaddress _blacklistHelperbool _expirable
Fallback and receive

This contract contains no fallback and receive objects.

Errors
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(