Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track token pools #69

Merged
merged 5 commits into from
Sep 18, 2023
Merged

Track token pools #69

merged 5 commits into from
Sep 18, 2023

Conversation

MikeHathaway
Copy link
Contributor

  • Track the list of pools including a token

Copy link
Contributor

@EdNoepel EdNoepel left a comment

Choose a reason for hiding this comment

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

No issues, one comment.

@@ -479,3 +479,12 @@ export function depositUpToIndex(poolAddress: Address, index: u32): BigInt {
const poolContract = ERC20Pool.bind(poolAddress)
return poolContract.depositUpToIndex(BigInt.fromU32(index));
}

export function updateTokenPools(token: Token, pool: Pool): void {
const pools = token.pools
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're not reassigning this, could just eliminate this line and use token.pools on 486.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated accordingly

@MikeHathaway MikeHathaway merged commit 98d6bba into develop Sep 18, 2023
1 check passed
@MikeHathaway MikeHathaway deleted the track-token-pools branch September 18, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants