CreditFacade

Verified contract

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

No balances found for "CreditFacade"

0x846d56e5d0a8a949049137d31a592381b4c07667c4ecefb6ad857aa50a4760a4
0x197fb0377c0ba97e0ea84e2ad5e34b6c7432ca10c2dd29a135b059be956a74f5
0x56c2c99b00a29164a4dd78da3e4083b771f42e7f2517a4cd31713c42c47d1b1e
0x4fece0d49d5e8e134a8432455615f5ac0f62e63e9d7b0370fb99de0ceb9a62a7
0x55215e04a95f4814f2d21b1ac8302a97d22a5d2702ff7b8065db4a426e18db63
0x72a7c73df0926d7d17640b7373f53b065491fb4b1b1e39d2a7703ee8481e62c5
0x90d2365f8d87a5e2ec372da2de4a6e251fc91d92142407eff308fdfae1c237cb
0x0cfa541406a568336543ac0a062e58a70d27dd843f013d2fc8ef25d9c11aad2f
0x1288d0a2f96fbb540d974ec63b6f0cdb648b08f4562aa8ecd283a8fcc242d2f3
0xaea61ad972f195962f46850e299c10ed05850b9fb5f83f91d9ec9802f39511e9

Functions
Getter at block 20910665
blacklistHelper(view returns (address)
0x0000000000000000000000000000000000000000
creditManager(view returns (address)
0x5887ad4cb2352e7f01527035faa3ae0ef2ce2b9b
degenNFT(view returns (address)
0xb829a5b349b01fc71afe46e50dd6ec0222a6e599
expirable(view returns (bool)
false
getTotalBorrowedInBlock(view returns (uint64 blockLastUpdateuint128 borrowedInBlock)
(blockLastUpdate=0, borrowedInBlock=0)
isBlacklistableUnderlying(view returns (bool)
false
limits(view returns (uint128 minBorrowedAmountuint128 maxBorrowedAmount)
(minBorrowedAmount=30000000000000000000, maxBorrowedAmount=600000000000000000000)
lossParams(view returns (uint128 currentCumulativeLossuint128 maxCumulativeLoss)
(currentCumulativeLoss=0, maxCumulativeLoss=0)
params(view returns (uint128 maxBorrowedAmountPerBlockbool isIncreaseDebtForbiddenuint40 expirationDateuint16 emergencyLiquidationDiscount)
(maxBorrowedAmountPerBlock=1200000000000000000000, isIncreaseDebtForbidden=false, expirationDate=0, emergencyLiquidationDiscount=9600)
pool(view returns (address)
0xb03670c20f87f2169a7c4ebe35746007e9575901
totalDebt(view returns (uint128 currentTotalDebtuint128 totalDebtLimit)
(currentTotalDebt=1379086405556212613839, totalDebtLimit=21760000000000000000000)
underlying(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
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(