Skip to content

Feature/add 0.008 fee option#52

Merged
danielpham765 merged 4 commits into
developfrom
feature/add-0.008-fee-option
May 25, 2022
Merged

Feature/add 0.008 fee option#52
danielpham765 merged 4 commits into
developfrom
feature/add-0.008-fee-option

Conversation

@danielpham765

@danielpham765 danielpham765 commented May 24, 2022

Copy link
Copy Markdown
  • Add a new const FEE_UNITS = 100,000
  • Add more tests

@danielpham765 danielpham765 force-pushed the feature/add-0.008-fee-option branch from b175ed7 to 57b2701 Compare May 25, 2022 07:05

@minhquanym minhquanym left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@minhquanym minhquanym requested a review from vutt94 May 25, 2022 07:39
@danielpham765 danielpham765 merged commit daa5f15 into develop May 25, 2022
manhlx3006 added a commit that referenced this pull request Jun 14, 2022
* update env for matic, bsc and avax (#43)

* zap-in/out feature (#44)

* read function for zapOut (#46)

* Fix bug calculate zapOutAmount (#47)

* add rpc fantom (#45)

* remove_dynamic_fee -> Done (#48)

* remove_dynamic_fee -> Done

* fix bugs and add deployment script

* rename stuffs

* remove unused var

* move feeinPrecision to Factory and Rename DMM to KS

* rename DMM to KS

* remove dynamic fee, add fee options

* fix deployment script

* add modifier for checking fee setter

* Add KSRouter, change feeOptions to public, remove getFinalFee

* update hardhat config

* fix hardhat config

* add router test

* rename dmmSwapCall to ksSwapCall, add ZapInV2

* fix test

* rename deployKs to deployKyberSwap

Co-authored-by: Jensen Tran <jensen@kyber.network>

* Update minting fee formula for DAO (#49)

* Add a new 0.008% fee option (#52)

* Mutiply the fee options by 10 times

* Add tests for changing BPS and add a new feeOption

* Add FEE_UNITS

* Update _mintFee func

* Fix overflow in minting fee formula (#51)

* Fix overflow mul div

Co-authored-by: quang_neo <ducquang.kstn@gmail.com>
Co-authored-by: Vu Tran <vutt94@gmail.com>
Co-authored-by: Jensen Tran <jensen@kyber.network>
Co-authored-by: Nguyen Minh Quan <30571817+minhquanym@users.noreply.github.com>
Co-authored-by: Daniel Pham <daniel.pham765@gmail.com>
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