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: sensible deposit and swap #448

Merged
merged 6 commits into from
Jun 28, 2022
Merged

fix: sensible deposit and swap #448

merged 6 commits into from
Jun 28, 2022

Conversation

Cafe137
Copy link
Collaborator

@Cafe137 Cafe137 commented Jun 28, 2022

No description provided.

@Cafe137 Cafe137 marked this pull request as draft June 28, 2022 10:19
@bee-worker
Copy link
Collaborator

bee-worker commented Jun 28, 2022

🐝 PR preview in Swarm

Preview URL: https://bah5acgzaoiekqbgv7mvxb7e6by3l3px3fhmju2yr27adalzlz6ngec6zdsxq.bzz.link
Swarm Hash: 7208a804d5fb2b70fc9e0e36bdbefb29d89a6b11d7c0302f2bcf9a620bd91caf
Commit Hash: e9a3991
Commit Message: fix: check for positive decimal

@Cafe137 Cafe137 changed the title fix: indicate and lower minimum xdai to deposit fix: sensible deposit and swap Jun 28, 2022
@Cafe137 Cafe137 marked this pull request as ready for review June 28, 2022 10:53
src/pages/top-up/Swap.tsx Outdated Show resolved Hide resolved

const daiAfterSwap = new DaiToken(balance.dai.toBigNumber.minus(daiToSwap.toBigNumber))
const bzzAfterSwap = new BzzToken(daiToSwap.toBigNumber.dividedToIntegerBy(200))
const bzzAfterSwap = new BzzToken(daiToSwap.toBigNumber.dividedBy(100).dividedToIntegerBy(0.6)) // TODO get price
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is awesome

src/pages/top-up/Swap.tsx Outdated Show resolved Hide resolved
src/pages/top-up/Swap.tsx Outdated Show resolved Hide resolved
src/pages/top-up/Swap.tsx Outdated Show resolved Hide resolved
@Cafe137 Cafe137 merged commit 26ce0ef into master Jun 28, 2022
@Cafe137 Cafe137 deleted the fix/top-up-xdai-deposit branch June 28, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants