Skip to content

Comments

allow empty pool for sushi-swap graph reading.#5

Open
noambergIL wants to merge 1 commit intomasterfrom
feature/allow-empty-pool-sushi-graph
Open

allow empty pool for sushi-swap graph reading.#5
noambergIL wants to merge 1 commit intomasterfrom
feature/allow-empty-pool-sushi-graph

Conversation

@noambergIL
Copy link
Contributor

i added an option that if pool is null in graph response it will just calc the harvested. but i'm not sure why pool data is empty.

@noambergIL noambergIL requested review from Rotemy and talkol June 25, 2021 21:44
const locked = pending.plus(harvested).multipliedBy(2);
return locked;
} else {
return new BigNumber(user.sushiHarvested).multipliedBy(2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no locked sushi program afaik, ended months ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants