CreditFacade

Verified contract

Active on Ethereum with 771 txns
Deployed by via 0xb86c5438 at 15840085
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"

0x94673eb6fd9f4b06aec2203fbcb5ed05f9b47b922c100e621a35c9dd953acc1e
0x4cfd0fe8cf980b175972d58dc0fc85971b397cfef13ff259124d8628d34e1196
0x52e556eccbce63671bf8540ea8a03b2b17f7919dd2d43ec86b4d87831c08f500
0xbdcac1181bb1a337acc404da959a5c2291e3d03832277b3bab27b7ee64856af5
0xe773967c98836dfce3c3f086d3bd360bb2b52fe1076987ecd5f437501689155d
0x7ec045c03635b1afe9818f5d430f2c73033d09b9ef2ccbdc07375f0daa41d725
0x6a893c687b3b0f91fb592f88e83975c65b8f238263eb0dd34884935eb13b5d43
0xde1c67f11fb632f35d0e7cbdc0991145ce9e97835623f7b538a6e081b8736885
0xb6c5ba786744ba3cd75b83d744a0ad938be8c95b8aa452b68059140203345702
0x6614b38ad29453f65fe0e337fdd81e1aa73562b7f86446d6f365356f1a9acac6

Functions
Getter at block 20908949
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)
limits(view returns (uint128 minBorrowedAmountuint128 maxBorrowedAmount)
(minBorrowedAmount=75000000000000000000, maxBorrowedAmount=600000000000000000000)
params(view returns (uint128 maxBorrowedAmountPerBlockbool isIncreaseDebtForbiddenuint40 expirationDate)
(maxBorrowedAmountPerBlock=1200000000000000000000, isIncreaseDebtForbidden=false, expirationDate=0)
underlying(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
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(