Kyber smart contract wrapper for cTokens, iTokens and sTokens native support
Many people has different ERC20 tokens in an Ethereum wallet and are not able to swap direct to any Compound and Fulcrum tokens. Even it's not possible to migrate a lending position from Compound to Fulcrum or Fulcrum to Compound in one single transaction.
We were able to solve this problem with a small smart contract wrapper over Kyber Network Proxy smart contract, which allows to bundle, unbundle and move the loan positions in multi path manner in one single transaction.
ETH -> cDAI == multi path swap ==> ETH -> DAI -> cDAI
ZRX -> cETH == multi path swap ==> ZRX -> ETH -> cETH
We wrote a wrapper smart contract with small multi path implementation.
Implementing multi path logic and debugging on the mainnet.
It's possible to use it everywhere where Kyber Network Proxy contract was already in use. Only the contract address needs to be changed. We integrated it in our Token Swap Aggregator => https://1inch.exchange
How to interact with Compound and Fulcrum.
Integration in to KyberSwap and Kyber Network Proxy!
https://etherscan.io/address/0xbfc22e3b81bddc185eb7c50765a9f445589a12ae#code