-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fix: Reseed Whitelist #1067
Fix: Reseed Whitelist #1067
Conversation
lgtm! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small comment, otherwise lgtm!
await well | ||
.connect(account) | ||
.addLiquidity([beanAmounts[i], nonBeanAmounts[i]], 0, L2Beanstalk, MAX_UINT256); | ||
// perform a swap to update the well pumps and avoid "NotInitialized" error. | ||
await well.connect(account).swapFrom(bean.address, token.address, to6("1"), 0, account.address, MAX_UINT256); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apologies, instead of swapping 1 bean here, I think we should call it with 0 beans instead (which should initialize the pump as well)
I would do this with addLiquidity
(with 0) as thats what was done in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed here and it worked: 92a65bb. Merging this now.
This pr addresses the
BeanstalkPrice
contract failing along with whitelist data errors in the reseed.ReseedWhitelist.sol
to set the oracle implementation for the non bean token in the well instead of the well lp token.NotInitialized()
error.