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

fixed the min amount with slippage #164

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fakoredeDamilola
Copy link
Collaborator

What does this PR do?

  • this fixed the minAmountOut for token A ND B by calculating the value from the slippage

What has been completed?

  • [ ]
  • [ ]

How should the changes be manually tested?

Any Background context or information you want to provide?

Demo Video and screenshots?

Copy link
Contributor

@kayroy247 kayroy247 left a comment

Choose a reason for hiding this comment

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

Kindly implement the feedback.

const amountBMin = Web3.utils.toWei(minimumAmountToReceive(toValue).toString())
// const amountAMin = Web3.utils.toWei((fromValue * 0.8).toString());
// const amountBMin = Web3.utils.toWei((toValue * 0.8).toString());
console.log({amountAMin,amountBMin})
Copy link
Contributor

Choose a reason for hiding this comment

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

Kindly remove the console log statements and the commented codes.

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.

None yet

2 participants