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 of the hPAL contract
balanceOf
Returns the hPalPower balance of a user
Parameters
Name | Type | Description |
---|---|---|
user | address | Address of the user |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : hPalPower balance |
balanceOfAt
Returns the hPalPower balance of a user at a given timestamp
Parameters
Name | Type | Description |
---|---|---|
user | address | Address of the user |
timestamp | uint256 | Timestamp to get the balance at |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : hPalPower balance |
getUserPoint
Returns the user Point (slope & bias) for the current Lock
Parameters
Name | Type | Description |
---|---|---|
user | address | Address of the user |
Return Values
Name | Type | Description |
---|---|---|
[0] | struct IHolyPalPower.Point | Point : User Point |
getUserPointAt
Returns the user Point (slope & bias) for the Lock at a given timestamp
Parameters
Name | Type | Description |
---|---|---|
user | address | Address of the user |
timestamp | uint256 | Timestamp to get the balance at |
Return Values
Name | Type | Description |
---|---|---|
[0] | struct IHolyPalPower.Point | Point : User Point |
locked__end
Returns the user Lock end timestamp
Parameters
Name | Type | Description |
---|---|---|
user | address | Address of the user |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : Lock end timestamp |
totalSupply
Returns the total hPALPower supply
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : Total hPALPower supply |
totalLocked
Returns the total amount of hPAL locked
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : Total hPAL locked |
totalLockedAt
Returns the total amount of hPAL locked at a given block
Parameters
Name | Type | Description |
---|---|---|
blockNumber | uint256 | Number of the block to get the total locked at |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : Total hPAL locked |
findTotalLockedAt
Finds the total amount of hPAL locked at a given timestamp
Parameters
Name | Type | Description |
---|---|---|
timestamp | uint256 | Timestamp to find the block number for |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | uint256 : Total Supply found for the given timestamp |
Last updated