CreditFacade

Verified contract

Active on Ethereum with 686 txns
Deployed by via 0xadab8104 at 15833466
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"

0x3a1c71a586f344e402bb4f4c307bd499bd1d6d9d05010bb271fd66086ef4afb1
0xaaf2f40c0b1b96bfdd94d20f12a996231598b612fe6fb60539f4d8aecbb058e5
0x73ffa357d1ee2f7be816a68596bf0739113e63d7ac75dc5431dc52031274c4e8
0x20081872813944836199a553bb3671db76f12b0c55f9caf32e7cbb4a95f2da7c
0x7e6718fe2dd9990b668ecd8e9475585538c4812b637b5bbf932933885f548894
0x6b55657983c59a60115013e7de3dfce4175548b8ee390f2a74348644341360b9
0xd14ff905e3aa9e995c936e68f3684b2f27f07184f6e90e34091eb2dab25c285b
0x4ccdf5717aa86bf7c23cf980d3ff4385e5e57130ba980e00b8ca26a591a23da3
0xec64119ea069a0144d5a77944e975424939690f6a38c72f98cb4cb77a2e6cadb
0xab99a1dfbb763a5d25d77208dc41e90e3ae81b7546c1e5cf872df2f7b5c0c318

Functions
Getter at block 21215952
creditManager(view returns (address)
0x672461bfc20dd783444a830ad4c38b345ab6e2f7
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=100000000000000000000000, maxBorrowedAmount=1000000000000000000000000)
params(view returns (uint128 maxBorrowedAmountPerBlockbool isIncreaseDebtForbiddenuint40 expirationDate)
(maxBorrowedAmountPerBlock=2000000000000000000000000, isIncreaseDebtForbidden=false, expirationDate=0)
underlying(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
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(