BlueberryBank

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xd4441904 at 19777183
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

No balances found for "BlueberryBank"

No transactions found for "BlueberryBank"


Functions
Getter at block 21168713
EXECUTOR(view returns (address)
0x0000000000000000000000000000000000000000
POSITION_ID(view returns (uint256)
0
SPELL(view returns (address)
0x0000000000000000000000000000000000000000
getAllBanks(view returns (address[])
[]
getBankStatus(view returns (uint256)
0
getConfig(view returns (address)
0x0000000000000000000000000000000000000000
getCurrentPositionInfo(view returns (struct IBankPosition)
(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0, 0, 0, 0)
 
getFeeManager(view returns (address)
getNextPositionId(view returns (uint256)
0
getOracle(view returns (address)
0x0000000000000000000000000000000000000000
getRepayResumedTimestamp(view returns (uint256)
0
isBorrowAllowed(view returns (bool)
false
isLendAllowed(view returns (bool)
false
isRepayAllowed(view returns (bool)
false
isWithdrawLendAllowed(view returns (bool)
false
owner(view returns (address)
0x0000000000000000000000000000000000000000
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
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(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
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(