We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf0e6b1 commit 7b8c9daCopy full SHA for 7b8c9da
src/adaptors/pinto/index.js
@@ -30,7 +30,9 @@ async function getPoolsForChain(chain, timestamp) {
30
{
31
beans${block ? `(block: {number: ${block}})` : ''} {
32
id
33
- lastSeason
+ currentSeason {
34
+ season
35
+ }
36
pools {
37
38
liquidityUSD
@@ -47,7 +49,7 @@ async function getPoolsForChain(chain, timestamp) {
47
49
48
50
// Get apy info
51
const apy = await axios.post(API, {
- season: bean.lastSeason,
52
+ season: bean.currentSeason.season,
53
emaWindows: [720],
54
tokens: bean.pools.map(p => p.id),
55
options: {
0 commit comments