smart-contracts icon indicating copy to clipboard operation
smart-contracts copied to clipboard

Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.

Results 46 smart-contracts issues
Sort by recently updated
recently updated
newest added

Too high rate due to cached rate: In case an exchange exists a reserve which has a (partially) increasing conversion rate in relation to the exchanged source quantity, then the...

Conversion Rate contract

In the getImbalance function, the multiplication totalImbalance *= resolution is performed unchecked. Since the resolution field can be arbitrarily big and totalImbalance can reach 2 63−1, overflows are possible. A...

Volume imbalance recorder contract

For now y values at steps are fixed within the step range. The ability to set a y range within the step which would be either determined linearly or by...

Unnecessary type conversions are introduced in the VolumeImbalance contract. In the addImbalance function, the argument uint currentBlock is passed and again cast to uint a few lines later. The same...

Volume imbalance recorder contract

Once token wallet is set, there is no way to set it to the reserve contract anymore. This is because token approval only happens in `approveWithdrawAddress`, and has the condition...

Reserve contract