Liquidity Mining Estimates API
Last updated
Last updated
This API provides an estimate amount of tokens earned by a liquidity provider at the current week (and previous week if tokens weren't sent out yet). Cumulative estimates for the week in progress are computed every hour, and the velocity with each tokens are being accrued is computed from the difference between two consecutive estimates. Clients can then use the velocity to update in real time the estimates retrieved from the API.
Clients can update the real time estimate by increasing the current_estimate
retrieved from the API by velocity
every second. The underlying data served by the API is updated every other hour, but it takes about 10 minutes to run the script, so clients should not expect any changes before at least 70 minutes have passed since snapshot_timestamp
.
Estimates are approximate, as they do not account for liquidity added/removed since the last time the script was run.
The API only provides estimates for weeks that have not yet been finalized; as soon as the estimator script detects that the previous weeks claims have been made available, the estimates for that week are removed from the underlying dataset.
Param
Description
Required
address
The address of the liquidity provider
TRUE
Parameter
Definition
success
false
if an error occurred, true
otherwise
current_timestamp
The timestamp of when the request was received by the server
snapshot_timestamp
The last time the mining estimator script was executed and velocity was determined
address
The address of the liquidity provider
token_address
The address of the token received as incentive for liquidity provided
chain_id
The ID of the chain in which liquidity was provided
velocity
The estimated rate, intokens/second
, at which tokens were being mined by the address at the last time the estimator script was run
current_estimate
The estimated total amount of token
mined by address
in the week
up to time current_timestamp
week
The number of the week that the estimates refer to, 1
being the week between Jun-01-2020 00:00:00
and Jun-07-2020 23:59:59