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

improve(relayer): Clear out token data explicitly and log token balances #983

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

nicholaspai
Copy link
Member

Based on an issue we're seeing where L1 to L2 rebalances are still getting duplicated, even after wrapping ETH, perhaps suggesting that the tokenClient is using stale data

the logic written here should be reading updated balances post-ETH-unwrap but it may not.

This PR adds more logs we can use to better debug

Based on an issue we're seeing where L1 to L2 rebalances are still getting duplicated, even after wrapping ETH, perhaps suggesting that the `tokenClient` is using stale data

the logic written [here](https://github.com/across-protocol/relayer-v2/blob/master/src/relayer/RelayerClientHelper.ts#L159) should be reading updated balances post-ETH-unwrap but it may not.

This PR adds more logs we can use to better debug
Comment on lines 637 to 639
if (!this.isInventoryManagementEnabled()) {
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens in this instance if there's no inventory config defined?

Copy link
Member Author

Choose a reason for hiding this comment

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

hm yeah thanks for pressing on this, think this is what I wanted to do: 3d0678f

src/relayer/RelayerConfig.ts Outdated Show resolved Hide resolved
@nicholaspai nicholaspai requested a review from pxrl October 10, 2023 13:53
@nicholaspai nicholaspai merged commit 4d42f7f into master Oct 10, 2023
2 checks passed
@pxrl pxrl deleted the npai/token-client branch October 10, 2023 14:30
@nicholaspai nicholaspai restored the npai/token-client branch October 10, 2023 15:08
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