TransparentUpgradeableProxy

Verified contract

Proxy

Active on Ethereum with 118 txns
Deployed by via 0x53424392 at 19777185
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 29 additional slots
3 additional variables
)
ERC-1555
--
)
ERC-1555
--
ERC-20
--
ERC-20
--
0x2f0678bd2af41b037918d9444a26fe16b45267a1be40da9f66a6e1e0295de299
0x73c5c786979a947fe9d57491b982df8a5cd407638b3154d00d2b570eda40184a
0x636f67471861f4137bb5b05bb9eb6b3020fe16c3b0f5d415c1c630448896ac5a
0x93a9512421f89a874e2b562fa8bd8b26ea0e38182428c7ea7c40d680ef94af45
0x4446e741f70a0cecdccae04f0b30c5731482210af16916a4f28886f1249f9874
0x5a3145b00d6d220ff7cf024665b3d7cc25815da02b2798e261f080872b79726e
0xa96c84e766dd5563cdfc880bbf2d403b113a3ccf896618daa142ddfdba4ffa15
0x5f79ddbca87937cf032388b8687341c1a55226e5960f8eebacd0fadee628b006
0x14e4bf184f96b4be2f01275a5e9d4b0c18f5d7bdca8dd52bcb30529577ccddf8
0xdac37f3bec21751257fc5bf4a37b2613cc815bd257c88795a46d73f3ae2e4596

Functions
Getter at block 21168713
 
EXECUTOR(view returns (address)
POSITION_ID(view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
SPELL(view returns (address)
0x0000000000000000000000000000000000000001
 
getAllBanks(view returns (address[])
getBankStatus(view returns (uint256)
15
getConfig(view returns (address)
0x26c85a3780ef040bc29f7b2002dfed2d493df4d4
 
getCurrentPositionInfo(view returns (struct IBankPosition)
getFeeManager(view returns (address)
0x0d2a69fd6074cf2bfaef844d65f13459e80309af
getNextPositionId(view returns (uint256)
40
getOracle(view returns (address)
0xdfe469ace05c3d0d4461439e6cf5d0f46f33ec56
getRepayResumedTimestamp(view returns (uint256)
0
isBorrowAllowed(view returns (bool)
true
isLendAllowed(view returns (bool)
true
isRepayAllowed(view returns (bool)
true
isWithdrawLendAllowed(view returns (bool)
true
owner(view returns (address)
0x72d19f7c71a2bd5e61871b1d3df7a45ae5ec9582
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
getBankInfo(address tokenview returns (struct IBankBank bank)
getDebtValue(uint256 positionIdview returns (uint256 debtValue)
getIsolatedCollateralValue(uint256 positionIdview returns (uint256 icollValue)
getPositionDebt(uint256 positionIdview returns (uint256 debt)
getPositionInfo(uint256 positionIdview returns (struct IBankPosition)
getPositionRisk(uint256 positionIdview returns (uint256 risk)
getPositionValue(uint256 positionIdview returns (uint256 positionValue)
isLiquidatable(uint256 positionIdview returns (bool)
isSpellWhitelisted(address spellview returns (bool)
isTokenWhitelisted(address tokenview returns (bool)
isWrappedTokenWhitelisted(address tokenview returns (bool)
onERC1155BatchReceived(addressaddressuint256[]uint256[]bytespure returns (bytes4)
onERC1155Received(addressaddressuint256uint256bytespure returns (bytes4)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
acceptOwnership(
accrue(address token
accrueAll(address[] tokens
addBank(address tokenaddress softVaultaddress hardVaultuint256 liqThreshold
borrow(address tokenuint256 amountreturns (uint256 borrowedAmount)
currentPositionDebt(uint256 positionIdreturns (uint256)
execute(uint256 positionIdaddress spellbytes datareturns (uint256)
initialize(address oracleaddress configaddress owner
lend(address tokenuint256 amount
liquidate(uint256 positionIdaddress debtTokenuint256 amountCall
modifyBank(uint8 bankIndexaddress tokenaddress softVaultaddress hardVaultuint256 liqThreshold
putCollateral(address collTokenuint256 collIduint256 amountCall
renounceOwnership(
repay(address tokenuint256 amountCall
setBankStatus(uint256 bankStatus
takeCollateral(uint256 amountreturns (uint256)
transferOwnership(address newOwner
whitelistERC1155(address[] tokensbool ok
whitelistSpells(address[] spellsbool[] statuses
whitelistTokens(address[] tokensbool[] statuses
withdrawLend(address tokenuint256 shareAmount
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
AddBank(address tokenaddress bTokenaddress softVaultaddress hardVault
Borrow(uint256 positionIdaddress calleraddress tokenuint256 amountuint256 share
Execute(uint256 positionIdaddress owner
Initialized(uint8 version
Lend(uint256 positionIdaddress calleraddress tokenuint256 amount
Liquidate(uint256 positionIdaddress liquidatoraddress debtTokenuint256 amountuint256 shareuint256 positionSizeuint256 underlyingVaultSize
ModifyBank(address tokenaddress bTokenaddress softVaultaddress hardVault
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PutCollateral(uint256 positionIdaddress owneraddress calleraddress tokenuint256 iduint256 amount
Repay(uint256 positionIdaddress calleraddress tokenuint256 amountuint256 share
SetOracle(address oracle
SetWhitelistERC1155(address indexed tokenbool isWhitelisted
SetWhitelistToken(address indexed tokenbool isWhitelisted
TakeCollateral(uint256 positionIdaddress calleraddress tokenuint256 iduint256 amount
WithdrawLend(uint256 positionIdaddress calleraddress tokenuint256 amount
Constructor
constructor(address _logicaddress initialOwnerbytes _data
Fallback and receive
fallback(
Errors
AddressEmptyCode(address target
ERC1967InvalidAdmin(address admin
ERC1967InvalidImplementation(address implementation
ERC1967NonPayable(
FailedInnerCall(
ProxyDeniedAdminAccess(
AddressEmptyCode(address target
AddressInsufficientBalance(address account
BAD_COLLATERAL(uint256 positionId
BAD_POSITION(uint256 posId
BANK_ALREADY_LISTED(
BANK_LIMIT(
BANK_NOT_EXIST(uint8 index
BANK_NOT_LISTED(address token
BORROW_FAILED(uint256 amount
BORROW_NOT_ALLOWED(
BORROW_ZERO_SHARE(uint256 borrowAmount
BTOKEN_ALREADY_ADDED(
DIFF_COL_EXIST(address collToken
FailedInnerCall(
INCORRECT_DEBT(address debtToken
INCORRECT_UNDERLYING(address uToken
INPUT_ARRAY_MISMATCH(
INSUFFICIENT_COLLATERAL(
INVALID_UTOKEN(address uToken
LEND_NOT_ALLOWED(
LIQ_THRESHOLD_TOO_HIGH(uint256 threshold
LIQ_THRESHOLD_TOO_LOW(uint256 threshold
LOCKED(
NOT_FROM_OWNER(uint256 positionIdaddress sender
NOT_FROM_SPELL(address from
NOT_IN_EXEC(
NOT_LIQUIDATABLE(uint256 positionId
NOT_UNDER_EXECUTION(
ORACLE_NOT_SUPPORT(address token
ORACLE_NOT_SUPPORT_WTOKEN(address wToken
REPAY_ALLOW_NOT_WARMED_UP(
REPAY_EXCEEDS_DEBT(uint256 repayuint256 debt
REPAY_FAILED(uint256 amount
REPAY_NOT_ALLOWED(
SPELL_NOT_WHITELISTED(address spell
SafeERC20FailedOperation(address token
TOKEN_NOT_WHITELISTED(address token
WITHDRAW_LEND_NOT_ALLOWED(
ZERO_ADDRESS(
ZERO_AMOUNT(