pending order view bugfix
This commit is contained in:
@@ -266,17 +266,17 @@ const ensureVaultRoutine = new SingletonCoroutine(doEnsureVault, 100)
|
||||
|
||||
|
||||
export const PendingOrderState = {
|
||||
Submitted: 100, // user clicked Place Order but the tx isn't sent to the wallet yet
|
||||
Submitted: -100, // user clicked Place Order but the tx isn't sent to the wallet yet
|
||||
Signing: 0, // tx is sent to the wallet
|
||||
Rejected: 101, // user refused to sign the tx
|
||||
Sent: 102, // tx is awaiting blockchain mining
|
||||
Rejected: -101, // user refused to sign the tx
|
||||
Sent: -102, // tx is awaiting blockchain mining
|
||||
}
|
||||
|
||||
|
||||
export async function pendOrder(order) {
|
||||
console.log('order', JSON.stringify(order))
|
||||
const s = useStore()
|
||||
useWalletStore().pendingOrders.push({
|
||||
useWalletStore().pendingOrders.splice(0,0,{
|
||||
chainId: s.chainId,
|
||||
placementTime: Date.now()/1000,
|
||||
vault: s.vaults.length ? s.vaults[0] : null,
|
||||
|
||||
Reference in New Issue
Block a user