smart-contracts
smart-contracts copied to clipboard
Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.
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...
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...
would be better to only block one side.
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...
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...