IBondFixedExpiryTeller
Inherits: IBondTeller
Functions
getBondTokenForMarket
Get the OlympusERC20BondToken contract corresponding to a market
function getBondTokenForMarket(uint256 id_) external view returns (ERC20);
Parameters
Name | Type | Description |
---|---|---|
id_ | uint256 | ID of the market |
Returns
Name | Type | Description |
---|---|---|
<none> | ERC20 | ERC20BondToken contract address |
deploy
Deploy a new ERC20 bond token for an (underlying, expiry) pair and return its address
ERC20 used for fixed-expiry
If a bond token exists for the (underlying, expiry) pair, it returns that address
function deploy(ERC20 underlying_, uint48 expiry_) external returns (ERC20);
Parameters
Name | Type | Description |
---|---|---|
underlying_ | ERC20 | ERC20 token redeemable when the bond token vests |
expiry_ | uint48 | Timestamp at which the bond token can be redeemed for the underlying token |
Returns
Name | Type | Description |
---|---|---|
<none> | ERC20 | Address of the ERC20 bond token being created |
create
Deposit an ERC20 token and mint a future-dated ERC20 bond token
function create(ERC20 underlying_, uint48 expiry_, uint256 amount_) external returns (ERC20, uint256);
Parameters
Name | Type | Description |
---|---|---|
underlying_ | ERC20 | ERC20 token redeemable when the bond token vests |
expiry_ | uint48 | Timestamp at which the bond token can be redeemed for the underlying token |
amount_ | uint256 | Amount of underlying tokens to deposit |
Returns
Name | Type | Description |
---|---|---|
<none> | ERC20 | Address of the ERC20 bond token received |
<none> | uint256 | Amount of the ERC20 bond token received |