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

fix: add balance left for tx approval: staking #343

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

Sharqiewicz
Copy link
Collaborator

What:

When user decides to stakes with "MAX" button, the entire PEN balance is considered in that transaction leaving no tokens for the user to execute the transaction i.e no gas fees to execute the transaction

How:

Add BALANCE_LEFT_FOR_TX_APPROVAL constant variable.

Closes: #296

@Sharqiewicz Sharqiewicz linked an issue Feb 19, 2024 that may be closed by this pull request
Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for rococo-souffle-a625f5 ready!

Name Link
🔨 Latest commit bdfe0dc
🔍 Latest deploy log https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/65d8b488b9644d0008c4190e
😎 Deploy Preview https://deploy-preview-343--rococo-souffle-a625f5.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Sharqiewicz Sharqiewicz changed the title add balance left for tx approval: staking fix: add balance left for tx approval: staking Feb 19, 2024
@Sharqiewicz Sharqiewicz requested a review from ebma February 22, 2024 12:10
src/components/Form/Amount/index.tsx Outdated Show resolved Hide resolved
Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Sharqiewicz Sharqiewicz merged commit cd87909 into staging Feb 28, 2024
5 checks passed
@Sharqiewicz Sharqiewicz deleted the 296-reserve-fees-when-user-does-max-staking branch February 28, 2024 11:02
ebma pushed a commit that referenced this pull request Mar 14, 2024
# [1.3.0](v1.2.1...v1.3.0) (2024-03-14)

### Bug Fixes

* add balance left for tx approval: staking ([#343](#343)) ([cd87909](cd87909))
* add Buffer polyfill to window global object ([#346](#346)) ([98e6594](98e6594))
* handle walletconnect disconnect events ([#338](#338)) ([738d049](738d049))
* Implement collapsible buttons for sidebar ([#337](#337)) ([d9c9240](d9c9240))
* Make Staking Reward boxes responsive ([#324](#324)) ([e765993](e765993))
* Update disclaimer text for bridge ([692001e](692001e))
* Update disclaimer text for Spacewalk ([#303](#303)) ([70c2a94](70c2a94))

### Features

* 288 allow users to withdraw from backstop pool in other assets ([#292](#292)) ([8322b11](8322b11))
* Add AMPE price to the Dashboard ([#293](#293)) ([cdf598e](cdf598e))
* Add info to the Bedeem from Backstop pool UI ([#291](#291)) ([208dacd](208dacd))
* Add support for NGN, EUR and AUD assets for Spacewalk ([#302](#302)) ([c377019](c377019))
* added pool filtering by paused flag ([#289](#289)) ([6e09bce](6e09bce))
* create decimal parseNumber implementation ([#349](#349)) ([49b194a](49b194a))
* enable the spacewalk option from menu on pendulum network ([#347](#347)) ([e2108f5](e2108f5))
* Make rows clickable in Spacewalk Transfers table ([#323](#323)) ([acb6b3d](acb6b3d))
* Metamask Snap integration ([#315](#315)) ([978c515](978c515))
* nabla UI and functionality ([#279](#279)) ([331aabe](331aabe))
* Remove mainnet USDC asset from AssetSelector in Foucoco ([#353](#353)) ([0febbfd](0febbfd))
* Update designs for Staking/Unstaking ([#325](#325)) ([3d391b4](3d391b4))
* Update designs for Updating and Claiming staking rewards ([#336](#336)) ([2ebc5d0](2ebc5d0))
* Update Spacewalk dialogs for "Back to Stellar" transactions ([#305](#305)) ([c80d7a5](c80d7a5))
* Update transfer dialogs design ([#295](#295)) ([8fe2791](8fe2791))

### Reverts

* Put back GH_TOKEN into the release config ([#282](#282)) ([e2b142a](e2b142a))
ebma pushed a commit that referenced this pull request Mar 15, 2024
# [1.3.0](v1.2.1...v1.3.0) (2024-03-15)

### Bug Fixes

* add balance left for tx approval: staking ([#343](#343)) ([cd87909](cd87909))
* add Buffer polyfill to window global object ([#346](#346)) ([98e6594](98e6594))
* handle walletconnect disconnect events ([#338](#338)) ([738d049](738d049))
* Implement collapsible buttons for sidebar ([#337](#337)) ([d9c9240](d9c9240))
* Make Staking Reward boxes responsive ([#324](#324)) ([e765993](e765993))
* Update disclaimer text for bridge ([692001e](692001e))
* Update disclaimer text for Spacewalk ([#303](#303)) ([70c2a94](70c2a94))

### Features

* 288 allow users to withdraw from backstop pool in other assets ([#292](#292)) ([8322b11](8322b11))
* Add AMPE price to the Dashboard ([#293](#293)) ([cdf598e](cdf598e))
* Add info to the Bedeem from Backstop pool UI ([#291](#291)) ([208dacd](208dacd))
* Add support for NGN, EUR and AUD assets for Spacewalk ([#302](#302)) ([c377019](c377019))
* added pool filtering by paused flag ([#289](#289)) ([6e09bce](6e09bce))
* create decimal parseNumber implementation ([#349](#349)) ([49b194a](49b194a))
* enable the spacewalk option from menu on pendulum network ([#347](#347)) ([e2108f5](e2108f5))
* Make rows clickable in Spacewalk Transfers table ([#323](#323)) ([acb6b3d](acb6b3d))
* Metamask Snap integration ([#315](#315)) ([978c515](978c515))
* nabla UI and functionality ([#279](#279)) ([331aabe](331aabe))
* Remove mainnet USDC asset from AssetSelector in Foucoco ([#353](#353)) ([0febbfd](0febbfd))
* Update designs for Staking/Unstaking ([#325](#325)) ([3d391b4](3d391b4))
* Update designs for Updating and Claiming staking rewards ([#336](#336)) ([2ebc5d0](2ebc5d0))
* Update Spacewalk dialogs for "Back to Stellar" transactions ([#305](#305)) ([c80d7a5](c80d7a5))
* Update transfer dialogs design ([#295](#295)) ([8fe2791](8fe2791))

### Reverts

* Put back GH_TOKEN into the release config ([#282](#282)) ([e2b142a](e2b142a))
ebma pushed a commit that referenced this pull request Mar 15, 2024
# [1.3.0](v1.2.1...v1.3.0) (2024-03-15)

### Bug Fixes

* add balance left for tx approval: staking ([#343](#343)) ([cd87909](cd87909))
* add Buffer polyfill to window global object ([#346](#346)) ([98e6594](98e6594))
* handle walletconnect disconnect events ([#338](#338)) ([738d049](738d049))
* Implement collapsible buttons for sidebar ([#337](#337)) ([d9c9240](d9c9240))
* Make Staking Reward boxes responsive ([#324](#324)) ([e765993](e765993))
* Update disclaimer text for bridge ([692001e](692001e))
* Update disclaimer text for Spacewalk ([#303](#303)) ([70c2a94](70c2a94))

### Features

* 288 allow users to withdraw from backstop pool in other assets ([#292](#292)) ([8322b11](8322b11))
* Add AMPE price to the Dashboard ([#293](#293)) ([cdf598e](cdf598e))
* Add info to the Bedeem from Backstop pool UI ([#291](#291)) ([208dacd](208dacd))
* Add support for NGN, EUR and AUD assets for Spacewalk ([#302](#302)) ([c377019](c377019))
* added pool filtering by paused flag ([#289](#289)) ([6e09bce](6e09bce))
* create decimal parseNumber implementation ([#349](#349)) ([49b194a](49b194a))
* enable the spacewalk option from menu on pendulum network ([#347](#347)) ([e2108f5](e2108f5))
* Make rows clickable in Spacewalk Transfers table ([#323](#323)) ([acb6b3d](acb6b3d))
* Metamask Snap integration ([#315](#315)) ([978c515](978c515))
* nabla UI and functionality ([#279](#279)) ([331aabe](331aabe))
* Remove mainnet USDC asset from AssetSelector in Foucoco ([#353](#353)) ([0febbfd](0febbfd))
* Update designs for Staking/Unstaking ([#325](#325)) ([3d391b4](3d391b4))
* Update designs for Updating and Claiming staking rewards ([#336](#336)) ([2ebc5d0](2ebc5d0))
* Update Spacewalk dialogs for "Back to Stellar" transactions ([#305](#305)) ([c80d7a5](c80d7a5))
* Update transfer dialogs design ([#295](#295)) ([8fe2791](8fe2791))

### Reverts

* Put back GH_TOKEN into the release config ([#282](#282)) ([e2b142a](e2b142a))
@ebma
Copy link
Member

ebma commented Mar 15, 2024

🎉 This PR is included in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ebma ebma added the released label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reserve fees when user does max staking
2 participants