Skip to content

Fix overflow in minting fee formula#51

Merged
minhquanym merged 3 commits into
developfrom
quan/updateFeeFormula
May 25, 2022
Merged

Fix overflow in minting fee formula#51
minhquanym merged 3 commits into
developfrom
quan/updateFeeFormula

Conversation

@minhquanym

Copy link
Copy Markdown

No description provided.

@minhquanym minhquanym changed the title Update minting fee for DAO formula Fix overflow in minting fee formula May 20, 2022
@minhquanym minhquanym merged commit 5ef9f0c 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