Skip to content

Commit

Permalink
Merge pull request #78 from IndexCoop/fix/hyeth-quote-amount
Browse files Browse the repository at this point in the history
fix: hyeth quote amount
  • Loading branch information
janndriessen authored Jul 4, 2024
2 parents 9f3d1a2 + 60c0350 commit cb84390
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/quote/flashmint/hyeth/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ export class FlashMintHyEthQuoteProvider
outputToken
)
if (!quoteResult) return null
const inputOutputTokenAmount = isMinting
? (quoteResult.inputOutputTokenAmount * BigInt(1003)) / BigInt(1000)
: (quoteResult.inputOutputTokenAmount * BigInt(1000)) / BigInt(1007)
const inputOutputTokenAmount = quoteResult.inputOutputTokenAmount
return {
indexTokenAmount,
inputOutputTokenAmount,
Expand Down

0 comments on commit cb84390

Please sign in to comment.