Skip to content

Managed wallet balance out of sync #2338

@ygrishajev

Description

@ygrishajev

Managed wallet record contains allowance fields reflecting how much user can spend. However it's not used entirely how it was intended at implementation. It is not universally synced and may be out of sync. When this happens, it is possible that user would see positive balance in the UI but the backend would throw when trying to deploy: https://github.com/akash-network/console/blob/main/apps/api/src/billing/services/managed-signer/managed-signer.service.ts#L110

We need to either:

  1. make sure we sync the balance at all times
  2. rely on rpc live data to to check balance
  3. let it sign a tx and handle an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions