You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, we do not see an equivalent unstakeAndWithdraw function. We would like our users to be able to unstake from the gauge and redeem their underlying LP tokens atomically.
Why isn't this included in the library. Oversight? Not possible?
Would it be optimal to add this function to the curve.js package, or create a helper contract to faciliate? Thanks for the help.
The text was updated successfully, but these errors were encountered:
I didn't include that because it's impossible to make in 1 tx for most of the pools (or maybe even all, I don't remember). Only 2 txs. Do you think we need it?
Could you give an example of pools that it works/doesn't for? Why can't it be completed atomically? Is there some time delay? Never really heard of things that can be done in separate transactions that can't be done in one.
It would be helpful for us to have. Saves our users from having to do an additional transaction.
For context, we built our own pool frontend for our LST and have abstracted away the stake component (we only let users depositAndStake). It would be nice to be able to do that on the withdraw side to minimize confusion.
Hi, we are currently using curve.js to add liquidity provisioning to our own frontend.
We see that there is a
depositAndStake
function.However, we do not see an equivalent
unstakeAndWithdraw
function. We would like our users to be able to unstake from the gauge and redeem their underlying LP tokens atomically.Why isn't this included in the library. Oversight? Not possible?
Would it be optimal to add this function to the curve.js package, or create a helper contract to faciliate? Thanks for the help.
The text was updated successfully, but these errors were encountered: