smart-contracts
smart-contracts copied to clipboard
Main smart contracts for Kyber Network, including the main platform contract, reserve contracts etc.
Assume some reserve wants to upgrade its reserve contract, while keeping all listings the same. unlisting all tokens and later listing back with new reserve address is a very lengthy...
Add some reserve API that can deposit part of the reserve inventory in on chain service with interest. Compound is a good candidate. Deposit API: To deposit funds from reserve...
in the reserve make sure this is a function that saves decimals for new tokens. so we should never call token.decimals() as part of trade flow. to avoid extra gas...
Currently in kyber network token.safeApprove is called as part of the token listing process. when adding token we approve to MAX_INT. when removing token approving to 0. when approving to...
Its a valid scenarios that use doesn't have sufficient source amount. happens when a few trades from same account are called and are being mined. problem: with current code. transferFrom...