TermFinanceVaultWrappedVotesToken.sol#TermFinanceVaultWrappedVotesToken

Git Source

Inherits: ERC20Votes, Ownable

State Variables

underlyingToken

ERC20 public immutable underlyingToken;

deposits

mapping(address => uint256) public deposits;

Functions

constructor

constructor(ERC20 _underlyingToken, string memory name, string memory symbol) ERC20(name, symbol) ERC20Permit(name);

decimals

function decimals() public view override returns (uint8);

wrap

function wrap(uint256 amount) external;

unwrap

function unwrap(uint256 amount) external;

Events

Wrapped

event Wrapped(address indexed user, uint256 amount);

Unwrapped

event Unwrapped(address indexed user, uint256 amount);

Last updated