IVotingYFI
Inherits: IERC20
Functions
totalSupply
function totalSupply() external view returns (uint256);
locked
function locked(address _user) external view returns (LockedBalance memory);
modify_lock
function modify_lock(uint256 _amount, uint256 _unlock_time, address _user) external returns (LockedBalance memory);
withdraw
function withdraw() external returns (Withdrawn memory);
point_history
function point_history(address user, uint256 epoch) external view returns (Point memory);
Events
ModifyLock
event ModifyLock(address indexed sender, address indexed user, uint256 amount, uint256 locktime, uint256 ts);
Withdraw
event Withdraw(address indexed user, uint256 amount, uint256 ts);
Penalty
event Penalty(address indexed user, uint256 amount, uint256 ts);
Supply
event Supply(uint256 oldSupply, uint256 newSupply, uint256 ts);
Structs
LockedBalance
struct LockedBalance {
uint256 amount;
uint256 end;
}
Withdrawn
struct Withdrawn {
uint256 amount;
uint256 penalty;
}
Point
struct Point {
int128 bias;
int128 slope;
uint256 ts;
uint256 blk;
}