Skip to content

Conversation

@apexearth
Copy link
Collaborator

@apexearth apexearth commented Oct 6, 2023

Before:

{
  "data": {
    "apies": [
      {
        "apy7DayAvg": 7170.039696958985,
        "apy30DayAvg": 6145.748311679129,
        "id": "2023-05-04",
        "apy14DayAvg": 6145.748311679129,
        "apy": 12.211407446536393,
        "apr": 11.523264611832278,
        "timestamp": "2023-05-04T07:49:59.000000Z",
        "blockNumber": 17185932
      },
      {
        "apy7DayAvg": 7168.0044623845615,
        "apy30DayAvg": 7168.0044623845615,
        "id": "2023-05-03",
        "apy14DayAvg": 7168.0044623845615,
        "apy": 12.691462386502451,
        "apr": 11.950302228880888,
        "timestamp": "2023-05-03T06:59:47.000000Z",
        "blockNumber": 17178581
      },
      {
        "apy7DayAvg": 8599.067062384174,
        "apy30DayAvg": 8599.067062384174,
        "id": "2023-05-02",
        "apy14DayAvg": 8599.067062384174,
        "apy": 13.471702052549794,
        "apr": 12.642703978818876,
        "timestamp": "2023-05-02T06:59:47.000000Z",
        "blockNumber": 17171469
      },
      {
        "apy7DayAvg": 10745.46590246708,
        "apy30DayAvg": 10745.46590246708,
        "id": "2023-04-30",
        "apy14DayAvg": 10745.46590246708,
        "apy": 48.16446682551003,
        "apr": 39.3364402582464,
        "timestamp": "2023-04-30T00:54:11.000000Z",
        "blockNumber": 17155428
      },
      {
        "apy7DayAvg": 14311.233047680937,
        "apy30DayAvg": 14311.233047680937,
        "id": "2023-04-29",
        "apy14DayAvg": 14311.233047680937,
        "apy": 42916.20143438662,
        "apr": 611.478261941006,
        "timestamp": "2023-04-29T01:33:35.000000Z",
        "blockNumber": 17148515
      },
      {
        "apy7DayAvg": 8.748854328096666,
        "apy30DayAvg": 8.748854328096666,
        "id": "2023-04-28",
        "apy14DayAvg": 8.748854328096666,
        "apy": 17.497708656193332,
        "apr": 16.131985476719315,
        "timestamp": "2023-04-28T00:13:23.000000Z",
        "blockNumber": 17140994
      },
      {
        "apy7DayAvg": 0,
        "apy30DayAvg": 0,
        "id": "2023-04-26",
        "apy14DayAvg": 0,
        "apy": 0,
        "apr": 0,
        "timestamp": "2023-04-26T12:38:47.000000Z",
        "blockNumber": 17130451
      }
    ]
  }
}

After:

{
  "data": {
    "apies": [
      {
        "apy7DayAvg": 71.70039696958986,
        "apy30DayAvg": 61.45748311679131,
        "id": "2023-05-04",
        "apy14DayAvg": 61.45748311679131,
        "apy": 0.12211407446536393,
        "apr": 0.11523264611832279,
        "timestamp": "2023-05-04T07:49:59.000000Z",
        "blockNumber": 17185932
      },
      {
        "apy7DayAvg": 71.68004462384563,
        "apy30DayAvg": 71.68004462384563,
        "id": "2023-05-03",
        "apy14DayAvg": 71.68004462384563,
        "apy": 0.1269146238650245,
        "apr": 0.11950302228880888,
        "timestamp": "2023-05-03T06:59:47.000000Z",
        "blockNumber": 17178581
      },
      {
        "apy7DayAvg": 85.99067062384174,
        "apy30DayAvg": 85.99067062384174,
        "id": "2023-05-02",
        "apy14DayAvg": 85.99067062384174,
        "apy": 0.13471702052549794,
        "apr": 0.12642703978818876,
        "timestamp": "2023-05-02T06:59:47.000000Z",
        "blockNumber": 17171469
      },
      {
        "apy7DayAvg": 107.4546590246708,
        "apy30DayAvg": 107.4546590246708,
        "id": "2023-04-30",
        "apy14DayAvg": 107.4546590246708,
        "apy": 0.48164466825510033,
        "apr": 0.39336440258246397,
        "timestamp": "2023-04-30T00:54:11.000000Z",
        "blockNumber": 17155428
      },
      {
        "apy7DayAvg": 143.11233047680938,
        "apy30DayAvg": 143.11233047680938,
        "id": "2023-04-29",
        "apy14DayAvg": 143.11233047680938,
        "apy": 429.1620143438662,
        "apr": 6.114782619410061,
        "timestamp": "2023-04-29T01:33:35.000000Z",
        "blockNumber": 17148515
      },
      {
        "apy7DayAvg": 0.08748854328096667,
        "apy30DayAvg": 0.08748854328096667,
        "id": "2023-04-28",
        "apy14DayAvg": 0.08748854328096667,
        "apy": 0.17497708656193334,
        "apr": 0.16131985476719315,
        "timestamp": "2023-04-28T00:13:23.000000Z",
        "blockNumber": 17140994
      },
      {
        "apy7DayAvg": 0,
        "apy30DayAvg": 0,
        "id": "2023-04-26",
        "apy14DayAvg": 0,
        "apy": 0,
        "apr": 0,
        "timestamp": "2023-04-26T12:38:47.000000Z",
        "blockNumber": 17130451
      }
    ]
  }
}

@apexearth
Copy link
Collaborator Author

Sadly numbers here don't match what they're supposed to. But even when I run locally without these changes they do not match. Might have been because I was only running the oeth processor. Sadly that shouldn't have mattered. So something weird is going on.

@apexearth
Copy link
Collaborator Author

Sadly numbers here don't match what they're supposed to. But even when I run locally without these changes they do not match. Might have been because I was only running the oeth processor. Sadly that shouldn't have mattered. So something weird is going on.

I take it back, #s match v6 / 100. I was disabling processing of some other things which threw the numbers off.

@apexearth apexearth requested review from nick and shahthepro October 9, 2023 17:27
@apexearth
Copy link
Collaborator Author

@apexearth apexearth merged commit 45e9544 into main Oct 9, 2023
@apexearth apexearth deleted the apy-as-percentage branch October 11, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants