Giter Site home page Giter Site logo

Comments (6)

MerlinEgalite avatar MerlinEgalite commented on July 29, 2024 1

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.

MathisGD avatar MathisGD commented on July 29, 2024 1

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.

MathisGD avatar MathisGD commented on July 29, 2024 1

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.

codekoriko avatar codekoriko commented on July 29, 2024 1

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.

codekoriko avatar codekoriko commented on July 29, 2024

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.

MerlinEgalite avatar MerlinEgalite commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.