forked from timewave-computer/x-vault-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The UI currently mocks the completion of the withdraw with a timer. The status should be queried from the chain
- 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}
- 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.
d-manevich
Metadata
Metadata
Assignees
Labels
No labels