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 thorchain min amount return error #306

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Fix thorchain min amount return error #306

merged 2 commits into from
Nov 24, 2023

Conversation

paullinator
Copy link
Member

@paullinator paullinator commented Nov 23, 2023

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Copy link
Contributor

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

Approved with curiosity

router: asOptional(asString), // "0xD37BbE5744D730a1d98d8DC97c42F0Ca46aD7146",
// slippage_bps: asNumber, // 92,
// streaming_slippage_bps: asNumber, // 5,
streaming_swap_blocks: asNumber, // 170,
total_swap_seconds: asOptional(asNumber) // 1020,
})

const asQuoteSwapFull = asEither(asQuoteError, asQuoteSwap)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we use this in getQuote?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Really it's just a type and I could have extended QuoteSwap instead of making more cleaners. I think i'll push a fixup

@paullinator paullinator merged commit f6ccf7d into master Nov 24, 2023
1 check passed
@paullinator paullinator deleted the paul/tcMinAmount branch November 24, 2023 21:47
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.

2 participants