-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(swap): Hide cancelled orders with FE fee from completed orders #3157
Conversation
@@ -77,6 +82,18 @@ const findCompletedOrderTx = (transactions: TransactionInfo[]): MappedRawOrder[] | |||
return filteredTx.filter((tx) => tx.metadata !== null).sort(compareByDate) | |||
} | |||
|
|||
const hasFrontendFeeReturn = (tx: TransactionInfo): boolean => { | |||
const addresses = tx.inputs.map((input) => input.address).filter(Boolean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we normalize the address and ensure it's in bech32 format? Given it's bech32 now, do we need to expect it to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say this Address management needs a complete refactor, so not now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michaeljscript won't this hide cancelled orders with ffee?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @stackchain yes, it will hide cancelled orders in the completed orders
tab, as is mentioned in the expected behaviour in the task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty @michaeljscript I missed that 🤦🏻
@stackchain @michaeljscript - checked the fix, looks good. |
Resolves YOMO-1264