Skip to main content

IBobVaultShare

Git Source

Inherits: IERC20Metadata

Title: IBobVaultShare

Interface for the ERC-20 token representing shares in a Bob vault.

Functions

SABLIER_BOB

Returns the address of the Bob contract with the authority to mint and burn tokens.

This is an immutable state variable.

function SABLIER_BOB() external view returns (address);

VAULT_ID

Returns the vault ID this share token represents.

This is an immutable state variable.

function VAULT_ID() external view returns (uint256);

mint

Mints amount tokens to to.

Emits a {Transfer} event. Requirements:

function mint(uint256 vaultId, address to, uint256 amount) external;

Parameters

NameTypeDescription
vaultIduint256The vault ID that this share token represents.
toaddressThe address to mint tokens to.
amountuint256The amount of tokens to mint.

burn

Burns amount tokens from from.

Emits a {Transfer} event. Requirements:

function burn(uint256 vaultId, address from, uint256 amount) external;

Parameters

NameTypeDescription
vaultIduint256The vault ID that this share token represents.
fromaddressThe address to burn tokens from.
amountuint256The amount of tokens to burn.