teller-protocol / teller-protocol-v1

Teller is a lending and undercollateralized borrowing protocol on the Ethereum blockchain. Teller is the first protocol to allow zero collateral borrowing for greater than one block.
https://teller.finance/
MIT License
105 stars 38 forks source link

Fork Network Using Latest Deployment Block #410

Closed passabilities closed 3 years ago

passabilities commented 3 years ago

The block used to fork a network locally, for tests and other operations, was previously hard coded in the hardhat.config.ts file which made it cumbersome to manually update this value after a new deployment.

We are already saving a file in the deployments directory for each network called .latestDeploymentBlock that is updated during the deployment process. This value is now being loaded during these operations.