Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.
Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.
yarn test
yarn report-gas:benchmark
yarn report-gas:summary
Check reports/gas_usage
.
yarn size-contracts
Check reports/contract_sizes.txt
.
In the project root directory, update .env
. Example values are in .env.template
.
Run deployment commands:
hardhat deploy --network <network> --tags <deployment-tags>
hardhat etherscan-verify --network <network>
source scripts/solt.sh
run_solt_write()
Then try:
solt verify --license 3 --network <network> solc-input-<contract>.json <deployed address> <contract name>
If the second step fails, go to Etherscan and manually verify using the standard JSON input files.
First, flatten the contract to verify:
hardhat flatten <path-to-contract> > flattened.out
Edit flattened.out
to remove the duplicate SPDX-License-Identifier
lines and submit to Etherscan.