Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to analyze Kyber Swap contract

Shulou Source: shulou.com Published: 2022-06-01 00:23:24 11月10日 Update

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!

Tags: Wallet contract code royalty content unit article management fee article fee management intermediary between that is interest quantity novice easy to understand more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia OPPO Reno MariaDB Docker Apple