CreditFacade

Verified contract

Active on Ethereum with 44 txns
Deployed by via 0x04b5f871 at 15840338
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"

0xab38f2bc6ea1a1888480b08181738164b2a8eda98afd08785ce72d45c2dd4713
0xe591d9e728d2db3e8a6bd0c0104dedd03f5fdacceda1fb1e0fdd20841dfcb202
0xe370c4c03451264fa757140d55b11655fa5c5a1c3ce41e8bd28a8f949e56395c
0x497c061f35b49a60e438eefac13c3e7dbef4d945eaa73618477d691de3ccec6d
0x77e25ebed2b441fdcd85562f1d69a6d48b0c9fa9733c96561e37037a5cfa98ed
0x3fcae46b06c97728af1c6a6f093b29821f08d9a35ac098dae46e4bcb20ceddc6
0xbd8a9084a231b6ea94c2ba59c4915abe225040c0dfafdacb0f77923406965f13
0x96d6f306de4d405c8814e5bdeb2150fdec762c7c0259329bef7ca4d360aa4680
0xd132eafee46691137eb7ae4f5533f3512689abac058d4adae054a684444cc5c1
0xfbca3a02195a37b9be876d15f3bf53656049d9d2b1b56e167f89c0f1f58dd3ea

Functions
Getter at block 21024438
creditManager(view returns (address)
0xc62bf8a7889adf1c5dc4665486c7683ae6e74e0f
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=550000000, maxBorrowedAmount=5000000000)
params(view returns (uint128 maxBorrowedAmountPerBlockbool isIncreaseDebtForbiddenuint40 expirationDate)
(maxBorrowedAmountPerBlock=10000000000, isIncreaseDebtForbidden=false, expirationDate=0)
underlying(view returns (address)
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
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(