CreditFacade

Verified contract

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

No balances found for "CreditFacade"

0x5ca3dd199daffdc0930c3886d794770d9c51d1a80bddba69e8e4db9795ed9138
From
0x65e4bf5c13aca1d3e8c80e4adcb837fb3edaa0d7142d58752c7f057eb96dfb76
From
0x54c9239304a92978c93bcea58e330a3c77181a3c9bd45d90e297265b057fdbdc
From
0x029ff9ef99f2b4746c65b40dd725cdd2d35787497712c12ba1de344ff694abef
From
0x756a4b993a35602ab03214bfad52f8244ba8316d973660ac42618e962a87c973
0x61a9c5a1cc6d231982790eb53290b0d55336b61cfe6bfc28aa7257fba2fbcdfc
From
0x40d52f2fed0cf28dc044fed4bf58b632bddf1d533ffde1f1eb5ea9e70af7dd02
From
0xe7494cfa27ffc0a09a164d7ba516e995ad0b239ae97f7445eff0115a9e208751
0x8d4c4e2d4c07ae7f3deb877680ad85bf851b9eedd399256edb1c4886053e2845
0xde633c1488f686627502e165f0a8456c311f27ba6b2204eee593199e38c9768f

Functions
Getter at block 21184439
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=0)
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=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 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(