centrifuge / pools-subql

Subquery for Pools on Centrifuge
MIT License
1 stars 4 forks source link

Add `yieldMTD`, `yieldQTD`, `yieldYTD` #176

Closed hieronx closed 2 weeks ago

hieronx commented 1 month ago

yieldMTD: (token price now - token price day 1 of the month) / token price day 1 of the month

yieldQTD: (token price now - token price day 1 of the quarter) / token price day 1 of the quarter

yieldYTD: (token price now - token price Jan 1) / token price Jan 1