Skip to content

[BUG] #1025

@loftyabhi

Description

@loftyabhi

Bug Description

Extending a vault using the full available amount (MAX slider / full progress bar) consistently fails with a wallet transaction error, while extending the same vault with a slightly lower amount succeeds. This indicates incorrect MAX amount calculation or a missing gas/precision buffer in the frontend.


Steps to Reproduce

  1. Go to https://hub.status.network
  2. Connect your wallet
  3. Navigate to My Vaults
  4. Select an existing vault
  5. Click on Extend Vault
  6. Move the amount slider to the full bar (MAX)
  7. Confirm the transaction in the wallet
  8. Observe the transaction error
  9. Repeat the process with the slider slightly below MAX
  10. Confirm the transaction again and see it succeed

Expected Behavior

Extending a vault using the full available balance should complete successfully without errors. The MAX amount should automatically account for gas fees, rounding precision, and protocol limits.


Actual Behavior

Using the full slider/MAX causes the wallet transaction to fail with an error. Reducing the amount slightly allows the transaction to complete successfully.


Screenshots

Screenshots show:

  • Wallet error when slider is at MAX
  • Successful transaction when slider is reduced

More Information

App: Status Network Hub (Vault Staking Interface)
Browser: Chrome Mobile (Android)


Additional Context

  • Error appears only when attempting to extend with 100% of available balance
  • Partial amounts work without issues
  • Likely caused by:
    • Gas buffer not reserved
    • Decimal rounding overflow
    • Frontend sending exact balance value

Possible Solution

  • Subtract a small buffer from MAX amount to cover gas and rounding
  • Round down token values before submitting transactions
  • Avoid allowing true 100% balance usage and instead use a safe max value
  • Display a user message when MAX is auto-adjusted

Image

Image

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To Develop

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions