HolyPalPower

Converts the hPAL Locks into a decreasing balance, similar to a veToken, with a Point structure (bias & slope). Allows to fetch past total locked supply and users past Locks

hPal

address hPal

Address of the hPAL contract

balanceOf

function balanceOf(address user) external view returns (uint256)

Returns the hPalPower balance of a user

Parameters

Return Values

balanceOfAt

function balanceOfAt(address user, uint256 timestamp) external view returns (uint256)

Returns the hPalPower balance of a user at a given timestamp

Parameters

Return Values

getUserPoint

function getUserPoint(address user) external view returns (struct IHolyPalPower.Point)

Returns the user Point (slope & bias) for the current Lock

Parameters

Return Values

getUserPointAt

function getUserPointAt(address user, uint256 timestamp) external view returns (struct IHolyPalPower.Point)

Returns the user Point (slope & bias) for the Lock at a given timestamp

Parameters

Return Values

locked__end

function locked__end(address user) external view returns (uint256)

Returns the user Lock end timestamp

Parameters

Return Values

totalSupply

function totalSupply() external view returns (uint256)

Returns the total hPALPower supply

Return Values

totalLocked

function totalLocked() external view returns (uint256)

Returns the total amount of hPAL locked

Return Values

totalLockedAt

function totalLockedAt(uint256 blockNumber) external view returns (uint256)

Returns the total amount of hPAL locked at a given block

Parameters

Return Values

findTotalLockedAt

function findTotalLockedAt(uint256 timestamp) external view returns (uint256)

Finds the total amount of hPAL locked at a given timestamp

Parameters

Return Values

Last updated