This section lists some guidelines on creating a new reserve type.
Step 1: Implement the Reserve Interface
The reserve interface provides a generic template of the contract functions one should implement in their smart contract. This interface may be tweaked depending on the needs and features of each blockchain. All existing reserve types, like the ones covered in the developer portal (e.g. Fed Price Reserve), as well as integrated reserves (e.g. Uniswap Reserve), implement this interface.
For the exact functions and inputs to implement, refer to the KyberReserveInterface contract.
Step 2: Write Unit Tests
Smart contract security is of upmost importance. As such, we require tests to be written for the smart contract functions to ensure that they only do what is expected. You may take a look at our test repository for test script examples.
Step 3: Setup KNC Fee Wallet
Reserves of the network need to hold some KNC tokens to pay for network fees whenever the reserves facilitate a trade. Of the 0.25% that is paid by the reserve, a portion of that (currently 30%) is given to the Kyber-integrated application or platform that facilitated the trade as part of the fee sharing program, and the rest of the KNC are burnt (taken out of circulation forever).