Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 991 Bytes

File metadata and controls

46 lines (30 loc) · 991 Bytes

Solidity API

VotingEscrowTestHelper

votingEscrow

contract VotingEscrow votingEscrow

constructor

constructor(address _votingEscrow) public

createManyLocks

function createManyLocks(uint256[] _value, uint256[] _lockDuration, address[] _to, address[] _delegatee, bool[] _permanent) public

balanceOfLockAt

function balanceOfLockAt(uint256 _tokenId, uint256 _timestamp) external view returns (uint256 balance)

Get the current voting power for _tokenId

Adheres to the ERC20 balanceOf interface for Aragon compatibility Fetches last user point prior to the CLOCK_UNIT before the timestamp

Parameters

Name Type Description
_tokenId uint256 NFT for lock
_timestamp uint256 Epoch time to return voting power at

Return Values

Name Type Description
balance uint256 ser voting power