CreditFacade

Verified contract

Active on Ethereum with 1,274 txns
Deployed by via 0x6e5528da at 15833599
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot

No balances found for "CreditFacade"

0x0b6b09b32ec4f660cf93794e68d0d4da09681ce2b82d7f272a0a26c0a6cbb334
0xc9da3fe07b303dbe922ae5f89ccdc3b94e2e8537dbc60c848225fe0e73e86c4a
0xa71d8e29d5f42449b4211f3b5ddf4a0add5e74f9c4a7bc1cec28249afaa28972
0x21ba213d173f3c9046a9bad8a8162b2328ffacc98bb11e7469755627b8741182
0x9f0d84a2c86da773a9e5a6c32c039fd1c9d148abb1484decd4f57d44b0af7435
0x6447d3450b221bed4e6849868498984d181e0eac34fa1907c64e57aae4d2f758
0x848d2fc5538b9ad904eb81ff8d8ea36bd3ce9f76f3bd09a8171419da463109f4
0x55b8c2931f30b8bdabe90008d5c2e63e6cf7809c9a3e5241590139d5f58c68d1
0x179c3000a7fdd4dbe504b5b26db95047276ef498224222f264c478d96274912d
0x89fc3079ea4afcbb481098b7bfd8e1a74aaf7277214e392cf02f9a3ab05163ba

Functions
Getter at block 21297492
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)
limits(view returns (uint128 minBorrowedAmountuint128 maxBorrowedAmount)
(minBorrowedAmount=100000000000, maxBorrowedAmount=1000000000000)
params(view returns (uint128 maxBorrowedAmountPerBlockbool isIncreaseDebtForbiddenuint40 expirationDate)
(maxBorrowedAmountPerBlock=2000000000000, isIncreaseDebtForbidden=false, expirationDate=0)
underlying(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
upgradeableContractsList(view returns (address[])
[]
version(view returns (uint256)
2
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)
isUpgradeableContract(address addrview returns (bool)
transfersAllowed(addressaddressview returns (bool)
State-modifying
addCollateral(address onBehalfOfaddress tokenuint256 amountpayable 
approve(address targetContractaddress tokenuint256 amount
approveAccountTransfer(address frombool state
closeCreditAccount(address touint256 skipTokenMaskbool convertWETHstruct MultiCall[] callspayable 
decreaseDebt(uint256 amount
enableToken(address token
increaseDebt(uint256 amount
liquidateCreditAccount(address borroweraddress touint256 skipTokenMaskbool convertWETHstruct MultiCall[] callspayable 
liquidateExpiredCreditAccount(address borroweraddress touint256 skipTokenMaskbool convertWETHstruct MultiCall[] callspayable 
multicall(struct MultiCall[] callspayable 
openCreditAccount(uint256 amountaddress onBehalfOfuint16 leverageFactoruint16 referralCodepayable 
openCreditAccountMulticall(uint256 borrowedAmountaddress onBehalfOfstruct MultiCall[] callsuint16 referralCodepayable 
setCreditAccountLimits(uint128 _minBorrowedAmountuint128 _maxBorrowedAmount
setExpirationDate(uint40 newExpirationDate
setIncreaseDebtForbidden(bool _mode
setLimitPerBlock(uint128 newLimit
setUpgradeable(address addrbool addOrRemove
transferAccountOwnership(address to
Events
AddCollateral(address indexed onBehalfOfaddress indexed tokenuint256 value
CloseCreditAccount(address indexed borroweraddress indexed to
DecreaseBorrowedAmount(address indexed borroweruint256 amount
IncreaseBorrowedAmount(address indexed borroweruint256 amount
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
Constructor
constructor(address _creditManageraddress _degenNFTbool _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(
NotAllowedInWhitelistedMode(
NotAllowedWhenNotExpirableException(
NotEnoughCollateralException(
OpenAccountNotAllowedAfterExpirationException(
ReentrancyLockException(
TargetContractNotAllowedException(
TokenAlreadyAddedException(
TokenNotAllowedException(
TooManyEnabledTokensException(
TooManyTokensException(
UnknownMethodException(
ZeroAddressException(
ZeroAddressOrUserAlreadyHasAccountException(