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

Add worstAmount to EdgeSwapQuote #616

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Add worstAmount to EdgeSwapQuote #616

merged 1 commit into from
Sep 11, 2024

Conversation

Jon-edge
Copy link
Contributor

@Jon-edge Jon-edge commented Sep 6, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@@ -791,7 +791,6 @@ export interface EdgeGetTransactionsOptions {
startDate?: Date
endDate?: Date
searchString?: string
spamThreshold?: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this removed?

Copy link
Contributor Author

@Jon-edge Jon-edge Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made changes on an older revision and pasted instead of rebasing or using stashes apparently, will reinstate


/** Worse case amount - the highest cost for a 'from' quote, and the lowest
* receive amount for a 'to' quote */
readonly worstAmount?: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to minAmount. Regardless of the quote being from or to, this will always be the minimum RECEIVE amount. I'd be ok renaming to minReceiveAmount

@Jon-edge Jon-edge force-pushed the jon/worst-swap-amount branch from 76fe9d2 to a05b4a6 Compare September 6, 2024 23:09
Comment on lines 821 to 823
/** Filter incoming transactions with a `nativeAmount` below this */
spamThreshold?: string

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still missing. Please put it back when you rebase.

@Jon-edge Jon-edge force-pushed the jon/worst-swap-amount branch from 44624fd to afb455a Compare September 11, 2024 22:10
@Jon-edge Jon-edge force-pushed the jon/worst-swap-amount branch from afb455a to 677266f Compare September 11, 2024 22:14
@Jon-edge Jon-edge merged commit 79482a5 into master Sep 11, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/worst-swap-amount branch September 11, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants