VBNBAdmin
VBNBAdmin
This contract is the "admin" of the vBNB market, reducing the reserves of the market, sending them to the ProtocolShareReserve
contract, and allowing the executions of the rest of the privileged functions in the vBNB contract (after checking if the sender has the required permissions).
Solidity API
vBNB
address of vBNB
WBNB
address of WBNB contract
initialize
Used to initialize non-immutable variables
setProtocolShareReserve
PSR setter.
Parameters
📅 Events
Emits ProtocolShareReserveUpdated event.
⛔️ Access Requirements
Only owner (Governance)
reduceReserves
Reduce reserves of vBNB, wrap them and send them to the PSR contract
Parameters
📅 Events
Emits ReservesReduced event.
setInterestRateModel
Sets the interest rate model of the vBNB contract
Parameters
⛔️ Access Requirements
Controlled by ACM
receive
Invoked when BNB is sent to this contract
⛔️ Access Requirements
Only vBNB is considered a valid sender
fallback
Invoked when called function does not exist in the contract. The function will be executed in the vBNB contract.
⛔️ Access Requirements
Only owner (Governance)
Last updated