BLendingToken
Overview
License: MIT
The BLendingToken contract
Events info
SetPrimaryLendingPlatform
Emitted when the primary lending platform is set.
Parameters:
Constants info
MODERATOR_ROLE (0x797669c9)
State variables info
primaryLendingPlatform (0x92641a7c)
Modifiers info
onlyAdmin
Modifier to check if the caller has the DEFAULT_ADMIN_ROLE.
onlyPrimaryLendingPlatform
Modifier to restrict access to functions that can only be called by the primary lending platform.
Functions info
init (0x4703d19c)
Initializes the bToken contract with the given parameters.
Parameters:
setPrimaryLendingPlatform (0xe801734a)
Sets the primary lending platform for the BLendingToken contract.
Parameters:
grantModerator (0x6981c7ae)
Grants the MODERATOR_ROLE
to a new address.
Parameters:
revokeModerator (0x36445636)
Revokes the moderator role from the specified address.
Parameters:
transferAdminship (0x5be7cc16)
Transfers the adminship to a new address.
Parameters:
hasRoleModerator (0xd6526889)
Returns true if the specified account has the moderator role.
Parameters:
Return values:
mintTo (0x449a52f8)
Mints new tokens to the specified minter address.
Parameters:
Return values:
redeemTo (0x2f7605fb)
Redeems redeemTokens
amount of bTokens for underlying assets to the redeemer
address. Only the primary lending platform can call this function.
Parameters:
Return values:
redeemUnderlyingTo (0x6664aa78)
Redeems redeemAmount
of bTokens for underlying asset and transfers them to redeemer
. Only the primary lending platform can call this function.
Parameters:
Return values:
borrowTo (0xfda0241d)
Allows the primary lending platform to borrow tokens on behalf of a borrower.
Parameters:
Return values:
repayTo (0x99c93213)
Repays a specified amount of the calling user's borrow balance to a borrower. Only callable by the primary lending platform.
Parameters:
Return values:
getEstimatedBorrowIndex (0xcbebe597)
Calculates the estimated borrow index based on the current borrow interest rate and the number of blocks elapsed since the last accrual.
Return values:
getEstimatedBorrowBalanceStored (0xb9ade142)
Returns the estimated borrow balance of an account based on the current borrow index.
Parameters:
Return values:
Last updated