Skip to content

Check withdraw status via clearing library deployed on neutron #15

@elenamik

Description

@elenamik

The UI currently mocks the completion of the withdraw with a timer. The status should be queried from the chain

  1. obtain the ID on the withdraw request. Can be done one of two ways:
  • read the ID from the event WithdrawRequested(currentWithdrawRequestId, owner, receiver, postFeeShares)
  • (WIP) read the ID from the indexer /vaultAddress/withdrawRequest?ethereum_address=${EVM_ADDRESS}
  1. Check the status of the withdraw ID in the clearing library deployed on neutron along with the vault
  • the status can be checked with the ObligationStatus query. settled=true means it is completed, settled=false means its in progress.
{
 "obligation_status": {
  "id": u64
 }
}
  • FYI IMPORTANT NOTE: it will take some time for the withdraw ID created on EVM to be queriable on neutron. In the meantime the query will error, so this should be handled somehow.

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