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 (Eg. Fed Price Reserve), as well as integrated reserves (Eg. 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 for the fee sharing program and fee burning. As such, a wallet should be setup with KNC tokens for the payment of these fees.