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

Handle case where all assets are missing, but tokens exist #143

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Handle case where all assets are missing, but tokens exist #143

merged 1 commit into from
Dec 8, 2022

Conversation

venables
Copy link
Contributor

@venables venables commented Dec 8, 2022

No description provided.

@@ -242,10 +242,11 @@ contract WithdrawController is IWithdrawController, IBeaconImplementation {
view
returns (uint256 assets)
{
assets = PoolLib.calculateConversion(
IPoolWithdrawState memory withdrawState = _currentWithdrawState(owner);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was just an optimization that was in the sister function that wasn't applied here

@venables venables merged commit 5acd163 into circlefin:master Dec 8, 2022
@venables venables deleted the matt/drain-pool-test branch December 8, 2022 19:45
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