CreditFacade

Verified contract

Active on Ethereum with 33 txns
Deployed by via 0x819c7d62 at 15840211
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"

0xdd3c47b228b00ffab2c6a8f5d709a6f7c93ac6afe9e46130ed541cc296a3a5ff
0x8e23b22baeb6998a3c694ad65cd6aa44e7c64ea29ffd016bf25cab4bf55591ab
0x253ff71aa58c35414c1941596dc77eb983b3f8b511853240d9f783576720fed3
0x1a806e9376524dd6843e81a65ba847dab76aa96cee2582b8950c8e2a0c3fbd5e
0xe00eb678030c38eccd6262f0cb73e8ec33aaf66693c0369f2c3a9485220ccd1e
0x7bead65e086081abbc29a099b3bffbb59e3b6761be39ed4b3b38c5f9e9009d42
0xd4202d0bcc2c66ddfb360259cc44491364adcb296c0cde8d1d02764a64ed996d
0x5e70586d63d406865340c9ac228ae7648e7c47ae5bb480ff4e1ca0a2848a6cbc
0x696e5aac6d67e1256313de3decc8733ae4a2c438235ba3e0d75b838165ed5c02
0xb9172d03f6a1be5da47d4eec6e798eaccf7e8c166aee7975f19e7574f4bcf1f7

Functions
Getter at block 21276824
creditManager(view returns (address)
0xe0bce4460795281d39c91da9b0275bca968293de
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)
0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
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(