Comments (6)
Hey @codekoriko! What are you building? You can import the interface which is >=0.5.0
if you want to interact with blue
from morpho-blue.
Any reason Morpho is pinned to solidity 0.8.19?
the reason was to have the same bytecode on chains without support for push0
, and be able to have the same address everywhere. An other option was to force the evm_version to paris, but we decided to go for 0.8.19 because it enforces the no push0 in the file directly.
is it a gas cost deterioration?
as you can see in #378, it's only like ~60 gas on average.
Especially since you reverted back to 0.8.19 it in this #378
My issue is that, it makes it incompatible with the latest OpenZeppelin, which require 0.8.20
As Merlin said, in your source implementation you should only need the IMorpho interface, which has a looser solidity version.
And if you need Morpho Blue in your tests, you have two options:
- fork Ethereum and use the one deployed on chain (address here).
- use deployCode, and force the compilation of Blue through a "import file" (see an example here).
from morpho-blue.
The idea of the foundry's function deployCode is to import the bytecode of Morpho.sol, hence circumventing the incompatible solc issue?
Yes exactly. Note that in order for it to work, you need to force the compilation of Morpho Blue anyway, which I advise to do with an import file (see here) that you put in your src
folder.
Otherwise, forking ethereum is even simpler: markets are already created and with liquidity, etc.
from morpho-blue.
Otherwise, forking ethereum is even simpler: markets are already created and with liquidity, etc.
Thanks for the feedbacks, it sounds like a good idea indeed
Interesting, what's the name of the project? 👀
I'm working on the Leveros Finance project 🚀
from morpho-blue.
Coding an app that perform leverage of morpho Markets. Making the use callBacks as shown in your snippets: LeverageDeleverageSnippets.sol
So indeed I need Morpho Blue in my tests
I'm Installing dependencies like so
forge install morpho-org/morpho-blue morpho-org/morpho-blue-oracles
That is morpho-blue-oracles
that installs in turn OpenZeppelin to the latest version in it's lib/
The idea of the foundry's function deployCode is to import the bytecode of Morpho.sol, hence circumventing the incompatible solc issue?
from morpho-blue.
Coding an app that perform leverage of morpho Markets
Interesting, what's the name of the project? 👀
Otherwise, forking ethereum is even simpler: markets are already created and with liquidity, etc.
I would recommend this approach as well.
from morpho-blue.
Related Issues (20)
- Unnecessary cast HOT 1
- Contango integration feedback HOT 4
- Revert silent invariant tests HOT 1
- Add return bytes to callbacks
- Restore invariants in CI
- The Cantina security review has a "draft" overlay HOT 1
- Test living vertigo mutations HOT 5
- `MorphoBalancesLib.expectedBorrowAssets` may return a value greater than `totalBorrowAssets` HOT 4
- IRM zero
- `changePrank` is deprecated HOT 2
- re-add the certora rule removed in #642
- remove the test tree
- Should `expectedAssets` precise the rounding HOT 2
- Cantina Managed report is still draft HOT 1
- Fix NPMjs deployment
- Update whitepaper with correct market naming HOT 1
- are you deploy to Sepolia Testnet yet? HOT 1
- boundUnhealthyPosition does not use amountCollateral at all
- `forge t` failing on `main`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morpho-blue.