Comment on page
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).address of vBNB
contract VTokenInterface vBNB
address of WBNB contract
contract IWBNB WBNB
Used to initialize non-immutable variables
function initialize(contract IProtocolShareReserve _protocolShareReserve, address accessControlManager) external
PSR setter.
function setProtocolShareReserve(contract IProtocolShareReserve protocolShareReserve_) external
Parameters
Name | Type | Description |
---|---|---|
protocolShareReserve_ | contract IProtocolShareReserve | Address of the PSR contract |
📅 Events
- Emits ProtocolShareReserveUpdated event.
⛔️ Access Requirements
- Only owner (Governance)
Reduce reserves of vBNB, wrap them and send them to the PSR contract
function reduceReserves(uint256 reduceAmount) external
Parameters
Name | Type | Description |
---|---|---|
reduceAmount | uint256 | amount of reserves to reduce |
📅 Events
- Emits ReservesReduced event.
Invoked when BNB is sent to this contract
receive() external payable
⛔️ Access Requirements
- Only vBNB is considered a valid sender
Invoked when called function does not exist in the contract. The function will be executed in the vBNB contract.
fallback(bytes data) external payable returns (bytes)
⛔️ Access Requirements
- Only owner (Governance)
Last modified 1mo ago