Saffron Position Token

Introduction

Saffron Position Token

Miscellaneous State Variables

Source Code

Type
Visibility
Name
Description

address

public

pool

Address of SaffronV2 pool that owns this token

Constructor

Source Code

constructor(string memory name, string memory symbol) ERC20(name, symbol) {
Type
Name
Description

string

name_

Name of position tokens

string

symbol_

Symbol for position tokens

mint()

Source Code

Mint Position Tokens as part of a deposit

function mint(address _to, uint256 _amount) external returns (uint256)
Type
Name
Description

address

_to

Recipient of newly minted tokens

uint256

_amount

Amount (Wei) of Position Tokens to be minted

burn()

Source Code

Burn Position Tokens as part of a withdrawal

function burn(address _account, uint256 _amount) public
Type
Name
Description

address

_acount

Account to have tokens burned from

uint256

_amount

Amount (Wei) of Position Tokens to be burned

Last updated

Was this helpful?