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

Stake tab complete staking is requesting approval #94

Open
greg-schrammel opened this issue Aug 4, 2022 · 6 comments
Open

Stake tab complete staking is requesting approval #94

greg-schrammel opened this issue Aug 4, 2022 · 6 comments
Assignees
Labels
bug Something isn't working build

Comments

@greg-schrammel
Copy link

Describe the bug
Clicking complete stake starts an approval request

Screen Shot 2022-08-04 at 10 51 14

I'd guess it's something like input < allowance instead of input <= allowance

as a side note I understand permit as a EIP-2612 signature, I'd suggest changing the button label to approve
Screen Shot 2022-08-04 at 10 59 07

@greg-schrammel greg-schrammel added the bug Something isn't working label Aug 4, 2022
@sambacha
Copy link
Contributor

sambacha commented Aug 5, 2022

Thanks for reporting this, we are rolling back to a known production state right now while we diagnose this issue. The commit that we are rolling the production dapp back to is 45b3814

@sambacha sambacha self-assigned this Aug 5, 2022
@sambacha sambacha added the build label Aug 5, 2022
@sambacha sambacha moved this to 🔀 Backlog in Manifold Public Aug 5, 2022
@sambacha sambacha moved this from 🔀 Backlog to 🔵 Next up in Manifold Public Aug 5, 2022
@sambacha
Copy link
Contributor

sambacha commented Aug 5, 2022

we have added this to the current dev cycle, you can see our project board here: https://github.com/orgs/manifoldfinance/projects/8

@sambacha
Copy link
Contributor

sambacha commented Aug 5, 2022

This is using the Brave browser, correct?

@greg-schrammel
Copy link
Author

yes, it's brave

@0xgeert
Copy link

0xgeert commented Nov 5, 2022

hey @sambacha: was bitten by this as well.

See here for the xfold approve that doesn't need to be there as part of the mint

Also, the foldNeedsApproval code is not correct, since it only returns true if approved amount to the xfold address is zero, instead of anything smaller than the value the user wants to mint. This resulted in met not seeing the Permit FOLD to mint and stake xFOLD-button and thus getting a failing mint as a result.

I suggest just doing an approve of Fold instead of xFold as part of the mint for the specified amount and you're done.

@sambacha
Copy link
Contributor

hey @sambacha: was bitten by this as well.

See here for the xfold approve that doesn't need to be there as part of the mint

Also, the foldNeedsApproval code is not correct, since it only returns true if approved amount to the xfold address is zero, instead of anything smaller than the value the user wants to mint. This resulted in met not seeing the Permit FOLD to mint and stake xFOLD-button and thus getting a failing mint as a result.

I suggest just doing an approve of Fold instead of xFold as part of the mint for the specified amount and you're done.

Thanks for the details, how can we award you a bounty?

The current version issue is we do not have the bandwidth to address these issues , so if you want to get paid for fixing them just name a reasonable price

the entire dapp needs to be rewritten iMho, but that can obviously wait

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build
Projects
Status: 🔵 Next up
Development

No branches or pull requests

3 participants