Using the Kyber network for on-chain collateral liquidation in loans.
A web interface for visualising what's going on is provided here.
Note: this a proof-of-concept demo.
The main thing in this repo that's important is the Loan.sol
file. Most other things are development gubbins.
The meat of the demo is in the front-end repo.
The contract isn't designed to be deployed from truffle, but by the demo interface through web3js when required.
To make the Kyber smart contracts available locally, we use the setup described here.
ganache-cli --accounts 20 --defaultBalanceEther 1000 --mnemonic "gesture rather obey video awake genuine patient base soon parrot upset lounge" --networkId 5777 --debug
To provide Kyber Network functionality to test with on the local ganache network, deploy the contracts from the Kyber workshop repo.
Simply run
truffle migrate --network development