Deploying and testing the crypto loan smart contracts
Now we have implemented all the smart contracts of a simple version of the crypto loan, we can deploy the smart contracts and test them to give them a try. By going through the deployment and testing, you will understand the process of deployment and configuration of crypto loan smart contracts. You will also learn how to interact with the smart contracts with frontend code.
Deploying crypto loan smart contracts
Deploying crypto loan smart contracts requires us to understand the smart contracts’ dependencies so that these smart contracts can be deployed in the correct sequence. In the architecture diagram of Figure 11.2, we can deploy the smart contracts from the bottom layer to the upper layer with the following sequence:
- Asset Pool Share Deployer (
AssetPoolShareDeployer.sol
). - Price Oracle (
PriceOracle.sol
) – this depends on theAMMRouter
smart contract andWETH
smart contract. - Pool Configuration...