Skip to content

Commit

Permalink
Merge pull request #136 from morpho-org/chore/bytecode-hash
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisGD authored Jan 14, 2025
2 parents 4f09910 + 79bdaec commit 0e99e64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

Some interest rate models for Morpho Blue:

- [AdaptiveCurveIRM](src/adaptive-curve-irm/AdaptiveCurveIrm.sol)
- [AdaptiveCurveIRM](src/AdaptiveCurveIrm.sol)
- _Important_: The `AdaptiveCurveIRM` was deployed [on Ethereum](https://etherscan.io/address/0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC) without the `via_ir` solc compilation option.
To check the bytecode on Ethereum, disable `via_ir` in `foundry.toml`.
Other deployments use `via_ir`.
- [FixedRateIRM](src/fixed-rate-irm/FixedRateIrm.sol)

## Resources
Expand Down
5 changes: 4 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ out = "out"
test = "test"
libs = ["lib"]
via_ir = true
optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimizer runs.
optimizer = true
optimizer_runs = 999999
bytecode_hash = "none"
evm_version = "paris"

[profile.default.fuzz]
runs = 4096
Expand Down

0 comments on commit 0e99e64

Please sign in to comment.