How to analyze Kyber Swap contract
The content of this article mainly focuses on how to analyze the Kyber Swap contract. The content of the article is clear and well-organized. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!
Code parsing
The contract is here.
Code parsing is referenced here.
Payment Service
Proxy
Reserve Manager
Note:
Kyber cannot be exchanged directly between Token and Token, and must be mediated by ETH. That is, KNC/GNT-- > KNC/ETH + ETH/GNT
FeeBurner
Includes the management fee for each Reserve (in Basis Point), the KNC wallet for each Reserve, and the wallet usage fee (in Basis Point), thus calculating the cost for each Reserve to be destroyed and the payment for each Reserve and wallet.
HandleFees: fee destroyed = management fee for Reserver-fee for use of Wallet
SendFeeToWallet: send it from Reserve's KNC wallet to the specified wallet
BurnReserveFees: destroy the specified amount from Reserve's KNC wallet (tax to be deducted)
Thank you for your reading. I believe you have some understanding of "how to interpret Kyber Swap contracts". Go ahead and practice it. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!