Skip to content

Commit 7b8c9da

Browse files
committed
Update subgraph query
1 parent bf0e6b1 commit 7b8c9da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/adaptors/pinto/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ async function getPoolsForChain(chain, timestamp) {
3030
{
3131
beans${block ? `(block: {number: ${block}})` : ''} {
3232
id
33-
lastSeason
33+
currentSeason {
34+
season
35+
}
3436
pools {
3537
id
3638
liquidityUSD
@@ -47,7 +49,7 @@ async function getPoolsForChain(chain, timestamp) {
4749

4850
// Get apy info
4951
const apy = await axios.post(API, {
50-
season: bean.lastSeason,
52+
season: bean.currentSeason.season,
5153
emaWindows: [720],
5254
tokens: bean.pools.map(p => p.id),
5355
options: {

0 commit comments

Comments
 (0)