Skip to content
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

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

michaeljscript
Copy link
Collaborator

@michaeljscript michaeljscript commented Mar 22, 2024

Resolves YOMO-1264

@github-actions github-actions bot added the fix label Mar 22, 2024
@@ -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)
Copy link
Collaborator Author

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?

Copy link
Member

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

Copy link
Member

@stackchain stackchain Mar 23, 2024

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?

Copy link
Collaborator Author

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

Copy link
Member

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 🤦🏻

@rahulnr7
Copy link
Contributor

@stackchain @michaeljscript - checked the fix, looks good.

@stackchain stackchain merged commit 3ac402e into develop Mar 24, 2024
3 checks passed
@stackchain stackchain deleted the fix/fix-fe-fee-completed-order branch March 24, 2024 19:37
@stackchain stackchain added this to the 4.26.0 milestone Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants