├── .gitignore ├── LICENSE ├── README.md ├── contracts.json ├── contracts └── MyContracts.sol ├── examples-js ├── compound-js │ ├── borrow-erc20-with-eth-collateral.js │ └── borrow-eth-with-erc20-collateral.js ├── ethers-js │ ├── borrow-erc20-with-eth-collateral.js │ └── borrow-eth-with-erc20-collateral.js └── web3-js │ ├── borrow-erc20-with-eth-collateral.js │ └── borrow-eth-with-erc20-collateral.js ├── examples-solidity ├── compound-js │ ├── borrow-erc20-via-solidity.js │ └── borrow-eth-via-solidity.js ├── ethers-js │ ├── borrow-erc20-via-solidity.js │ └── borrow-eth-via-solidity.js └── web3-js │ ├── borrow-erc20-via-solidity.js │ └── borrow-eth-via-solidity.js ├── hardhat.config.js ├── package.json └── scripts ├── deploy.js └── run-localhost-fork.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | .build/ 4 | artifacts 5 | cache 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/README.md -------------------------------------------------------------------------------- /contracts.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/contracts.json -------------------------------------------------------------------------------- /contracts/MyContracts.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/contracts/MyContracts.sol -------------------------------------------------------------------------------- /examples-js/compound-js/borrow-erc20-with-eth-collateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-js/compound-js/borrow-erc20-with-eth-collateral.js -------------------------------------------------------------------------------- /examples-js/compound-js/borrow-eth-with-erc20-collateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-js/compound-js/borrow-eth-with-erc20-collateral.js -------------------------------------------------------------------------------- /examples-js/ethers-js/borrow-erc20-with-eth-collateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-js/ethers-js/borrow-erc20-with-eth-collateral.js -------------------------------------------------------------------------------- /examples-js/ethers-js/borrow-eth-with-erc20-collateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-js/ethers-js/borrow-eth-with-erc20-collateral.js -------------------------------------------------------------------------------- /examples-js/web3-js/borrow-erc20-with-eth-collateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-js/web3-js/borrow-erc20-with-eth-collateral.js -------------------------------------------------------------------------------- /examples-js/web3-js/borrow-eth-with-erc20-collateral.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-js/web3-js/borrow-eth-with-erc20-collateral.js -------------------------------------------------------------------------------- /examples-solidity/compound-js/borrow-erc20-via-solidity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-solidity/compound-js/borrow-erc20-via-solidity.js -------------------------------------------------------------------------------- /examples-solidity/compound-js/borrow-eth-via-solidity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-solidity/compound-js/borrow-eth-via-solidity.js -------------------------------------------------------------------------------- /examples-solidity/ethers-js/borrow-erc20-via-solidity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-solidity/ethers-js/borrow-erc20-via-solidity.js -------------------------------------------------------------------------------- /examples-solidity/ethers-js/borrow-eth-via-solidity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-solidity/ethers-js/borrow-eth-via-solidity.js -------------------------------------------------------------------------------- /examples-solidity/web3-js/borrow-erc20-via-solidity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-solidity/web3-js/borrow-erc20-via-solidity.js -------------------------------------------------------------------------------- /examples-solidity/web3-js/borrow-eth-via-solidity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/examples-solidity/web3-js/borrow-eth-via-solidity.js -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/package.json -------------------------------------------------------------------------------- /scripts/deploy.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/scripts/deploy.js -------------------------------------------------------------------------------- /scripts/run-localhost-fork.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/compound-developers/compound-borrow-examples/HEAD/scripts/run-localhost-fork.js --------------------------------------------------------------------------------