Methods of fetching different RAY stats directly from the blockchain


To fetch the AUM of RAY per coin, sum the results of the queries of the following contracts/methods. Note, all RAY addresses for relevant contracts can be found at Deployed Addresses.

  1. The supported coins [ETH, SAI, USDC, DAI] balance of the PortfolioManager contract

  2. getBalance(coinAddress)on each Opportunity contract that supports the coin. - For ETH's coinAddress, use the Canonical WETH address (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2). - The return will be in native units of the coin. In example, for ETH it will be in wei, and for USDC it will be in mWei