Skip to content

tohrxyz/eth-pool-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Morpho Pool Parser

This script parses the Morpho pool data and outputs it in the format required by the lending protocol adapter.

Usage

  1. Go to the Morpho API and download the pool data for the chains you want to support. Use this link to get the query. <<< note that you need to change the chainId to the chain you want to support >>> , currently only Ethereum and Base are supported.

  2. Run the script with the following command:

node morphoPoolParser.js <inputFile> <chainId> <outputFile>
  1. The output schema will look like this:
morpho: {
  [SupportedChain.Base]: [
    { underlyingToken: '0x00...', aToken: '0x00...', pool: '0x00...' },
    ...
  ],
}

About

Tool for parsing Morpho's vaults response into appropriate format for pool adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors