This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-06-12T08:13:10.360Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Axios from "axios"; | |
import * as fs from "fs"; | |
const SUBGRAPH_URL = | |
"https://subgraph.reflexer.finance/subgraphs/name/reflexer-labs/rai"; | |
const main = async () => { | |
// RAI reserve / LP total supply | |
const lpToRaiCoefficient = 28660219.789 / 1283759.973; | |
const accumulatedRate = 1.0009347896036; |