- This is a solidity smart contract that allows a user to get a opportunity to execute automatic arbitrage between WBTC and ETH.
- Based on
.env.example
, you add.env
file
$ npm install
$ npm run migrate:kovan
$ npm run script:arbitrage
- In advance (and in case of using kovan), you need to add a pair (WBTC - ETH) liquidity into uniswap pool and balancer pool.
- [Compound]:
-
Deployed contract address (on Mainnet and Ropsten)
-
compound-borrow-examples
https://github.com/compound-developers/compound-borrow-examples/blob/master/solidity-examples/MyContracts.sol -
Borrowing an ERC20 Token by using ETH as Collateral
https://medium.com/compound-finance/borrowing-assets-from-compound-quick-start-guide-f5e69af4b8f4 -
[Workshop]ďźLending & Borrowing Tokens on Compound from Solidity
https://www.youtube.com/watch?v=0H8pC1-ADoY
-
- [Uniswap]:
-
Flash Swap
https://uniswap.org/docs/v2/core-concepts/flash-swaps/ -
Flash Swaps for developers
https://uniswap.org/docs/v2/smart-contract-integration/using-flash-swaps/ -
ExampleFlashSwap.sol
https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleFlashSwap.sol -
FlashSwap example
https://github.com/Austin-Williams/uniswap-flash-swapper
-
- [Balancer]:
-
Deployed addresses on Kovan
https://docs.balancer.finance/smart-contracts/addresses#kovan -
Doc
-
interface
https://docs.balancer.finance/smart-contracts/interfaces -
on-chain registry (add pool pair)
https://docs.balancer.finance/smart-contracts/on-chain-registry#addpoolpair
-
-