celer-network
layer2-finance-contracts
Solidity

Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.

Last updated May 8, 2025
51
Stars
27
Forks
4
Issues
0
Stars/day
Attention Score
37
Language breakdown
Solidity 49.6%
TypeScript 48.4%
Shell 1.6%
JavaScript 0.5%
Files click to expand
README

Layer 2 Finance Contracts

Contracts for the Layer 2 Finance DeFi aggregator, powered by optimistic rollup.

Run unit tests

yarn test

Benchmark gas cost

yarn report-gas:benchmark
yarn report-gas:summary

Check reports/gas_usage.

Update contract sizes

yarn size-contracts

Check reports/contract_sizes.txt.

Deployment

  • In the project root directory, update .env. Example values are in .env.template.
  • Run deployment commands:
hardhat deploy --network <network> --tags <deployment-tags>
  • To verify on Etherscan using Hardhat, try:
hardhat etherscan-verify --network <network>
  • To verify on Etherscan using solt, run:
source scripts/solt.sh
runsoltwrite()

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.

  • (Not recommended, does not work with ABIEncoderV2) To flatten and manually verify on Etherscan:
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.

© 2026 GitRepoTrend · celer-network/layer2-finance-contracts · Updated daily from GitHub