Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Pendle v2 fees & revenue #665

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Fix Pendle v2 fees & revenue #665

merged 1 commit into from
Jul 26, 2023

Conversation

ngfam
Copy link
Contributor

@ngfam ngfam commented Jul 26, 2023

Methodology:

To gather all transfers event of SY tokens and reward tokens to Pendle treasury addresses. This should cover:

  • All swap fees from PendleMarket (in SY token)
  • All interest & reward fees from PendleYieldToken

@llamatester
Copy link

The pendle.ts adapter exports:


Fees for 25/7/2023
_______________________________________

Failed to get value on bsc: Error: failed to meet quorum (method="getLogs", params={"filter":{"fromBlock":"0x1cdadaf","toBlock":"0x1cdb4b0","address":"0xF4C8E32EaDEC4BFe97E0F595AdD0f4450a863a11","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e"]}}, results=[{"weight":1,"start":1690346898333,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":74,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":74,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed.binance.org/"}},{"weight":1,"start":1690346899083,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":70,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":70,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.defibit.io/"}},{"weight":1,"start":1690346899833,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":70,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":70,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.ninicoin.io/"}},{"weight":1,"start":1690346900616,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":70,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":70,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.defibit.io/"}},{"weight":1,"start":1690346901366,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":67,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":67,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.ninicoin.io/"}}], provider={"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291010,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346882562,"providerConfigs":[{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346898907,"connection":{"url":"https://bsc-dataseed.binance.org/"},"_nextId":75,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":0,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291012},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":30291012,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346899661,"connection":{"url":"https://bsc-dataseed1.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":1,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291012},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":30291012,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346900775,"connection":{"url":"https://bsc-dataseed1.ninicoin.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":2,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291013},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":30291013,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346901644,"connection":{"url":"https://bsc-dataseed2.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":3,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291013},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291015,"_lastBlockNumber":30291013,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346898342,"connection":{"url":"https://bsc-dataseed2.ninicoin.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291015,"_fastBlockNumberPromise":{}},"priority":4,"stallTimeout":750,"weight":1}],"quorum":1,"_highestBlockNumber":30291010,"_internalBlockNumber":{},"_fastBlockNumber":30291010,"_fastBlockNumberPromise":{}}, code=SERVER_ERROR, version=providers/5.7.2)
ETHEREUM 👇
Backfill start time: 9/6/2023
NO METHODOLOGY SPECIFIED
Daily fees: 118.07354261755556
Daily revenue: 118.07354261755556
Timestamp: 1690329598


ARBITRUM 👇
Backfill start time: 9/6/2023
NO METHODOLOGY SPECIFIED
Daily fees: 100.11030661873843
Daily revenue: 100.11030661873843
Timestamp: 1690329598


BSC 👇
Timestamp attempted: 24/7/2023
Error: failed to meet quorum (method="getLogs", params={"filter":{"fromBlock":"0x1cdadaf","toBlock":"0x1cdb4b0","address":"0xF4C8E32EaDEC4BFe97E0F595AdD0f4450a863a11","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e"]}}, results=[{"weight":1,"start":1690346898333,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":74,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":74,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed.binance.org/"}},{"weight":1,"start":1690346899083,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":70,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":70,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.defibit.io/"}},{"weight":1,"start":1690346899833,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":70,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":70,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.ninicoin.io/"}},{"weight":1,"start":1690346900616,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":70,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":70,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.defibit.io/"}},{"weight":1,"start":1690346901366,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":67,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf4c8e32eadec4bfe97e0f595add0f4450a863a11\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":67,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.ninicoin.io/"}}], provider={"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291010,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346882562,"providerConfigs":[{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346898907,"connection":{"url":"https://bsc-dataseed.binance.org/"},"_nextId":75,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":0,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291012},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":30291012,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346899661,"connection":{"url":"https://bsc-dataseed1.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":1,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291012},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":30291012,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346900775,"connection":{"url":"https://bsc-dataseed1.ninicoin.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":2,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291013},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291016,"_lastBlockNumber":30291013,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346901644,"connection":{"url":"https://bsc-dataseed2.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291016,"_fastBlockNumberPromise":{}},"priority":3,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30291013},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30291015,"_lastBlockNumber":30291013,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690346898342,"connection":{"url":"https://bsc-dataseed2.ninicoin.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30291015,"_fastBlockNumberPromise":{}},"priority":4,"stallTimeout":750,"weight":1}],"quorum":1,"_highestBlockNumber":30291010,"_internalBlockNumber":{},"_fastBlockNumber":30291010,"_fastBlockNumberPromise":{}}, code=SERVER_ERROR, version=providers/5.7.2)
    at Logger.makeError (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at FallbackProvider.<anonymous> (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/src.ts/fallback-provider.ts:645:23)
    at step (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/lib/fallback-provider.js:48:23)
    at Object.next (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/lib/fallback-provider.js:29:53)
    at fulfilled (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/lib/fallback-provider.js:20:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  reason: 'failed to meet quorum',
  code: 'SERVER_ERROR',
  method: 'getLogs',
  params: {
    filter: {
      fromBlock: '0x1cdadaf',
      toBlock: '0x1cdb4b0',
      address: '0xF4C8E32EaDEC4BFe97E0F595AdD0f4450a863a11',
      topics: [Array]
    }
  },
  results: [
    { weight: 1, start: 1690346898333, error: [Error] },
    { weight: 1, start: 1690346899083, error: [Error] },
    { weight: 1, start: 1690346899833, error: [Error] },
    { weight: 1, start: 1690346900616, error: [Error] },
    { weight: 1, start: 1690346901366, error: [Error] }
  ],
  provider: FallbackProvider {
    _isProvider: true,
    _events: [],
    _emitted: { block: -2 },
    disableCcipRead: false,
    formatter: Formatter { formats: [Object] },
    anyNetwork: false,
    _network: { name: 'bsc', chainId: 56 },
    _maxInternalBlockNumber: 30291010,
    _lastBlockNumber: -2,
    _maxFilterBlockRange: 10,
    _pollingInterval: 4000,
    _fastQueryDate: 1690346882562,
    providerConfigs: [ [Object], [Object], [Object], [Object], [Object] ],
    quorum: 1,
    _highestBlockNumber: 30291010,
    _internalBlockNumber: Promise { [Object] },
    _fastBlockNumber: 30291010,
    _fastBlockNumberPromise: Promise { 30291010 }
  }
}




Done in 313.72s.

@llamatester
Copy link

The pendle.ts adapter exports:


Fees for 25/7/2023
_______________________________________

Failed to get value on bsc: Error: failed to meet quorum (method="getLogs", params={"filter":{"fromBlock":"0x1cdadaf","toBlock":"0x1cdb4b0","address":"0xf86DDA825885674F85C5420079E1Df1bC0F372c6","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e"]}}, results=[{"weight":1,"start":1690356021993,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":73,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":73,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed.binance.org/"}},{"weight":1,"start":1690356022757,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":67,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":67,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.defibit.io/"}},{"weight":1,"start":1690356023513,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":69,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":69,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.ninicoin.io/"}},{"weight":1,"start":1690356024272,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":69,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":69,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.defibit.io/"}},{"weight":1,"start":1690356025022,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":68,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":68,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.ninicoin.io/"}}], provider={"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294043,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356006546,"providerConfigs":[{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294048,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356022761,"connection":{"url":"https://bsc-dataseed.binance.org/"},"_nextId":75,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_fastBlockNumber":30294048,"_fastBlockNumberPromise":{}},"priority":0,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294045},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294049,"_lastBlockNumber":30294045,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356024266,"connection":{"url":"https://bsc-dataseed1.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294049,"_fastBlockNumberPromise":{}},"priority":1,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294045},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294048,"_lastBlockNumber":30294045,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356024261,"connection":{"url":"https://bsc-dataseed1.ninicoin.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294048,"_fastBlockNumberPromise":{}},"priority":2,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294045},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294049,"_lastBlockNumber":30294045,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356025024,"connection":{"url":"https://bsc-dataseed2.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294049,"_fastBlockNumberPromise":{}},"priority":3,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294046},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294049,"_lastBlockNumber":30294046,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356025025,"connection":{"url":"https://bsc-dataseed2.ninicoin.io/"},"_nextId":70,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294049,"_fastBlockNumberPromise":{}},"priority":4,"stallTimeout":750,"weight":1}],"quorum":1,"_highestBlockNumber":30294043,"_internalBlockNumber":{},"_fastBlockNumber":30294043,"_fastBlockNumberPromise":{}}, code=SERVER_ERROR, version=providers/5.7.2)
ETHEREUM 👇
Backfill start time: 9/6/2023
NO METHODOLOGY SPECIFIED
Daily fees: 118.07371034341223
Daily revenue: 118.07371034341223
Timestamp: 1690329598


ARBITRUM 👇
Backfill start time: 9/6/2023
NO METHODOLOGY SPECIFIED
Daily fees: 100.11032661416887
Daily revenue: 100.11032661416887
Timestamp: 1690329598


BSC 👇
Timestamp attempted: 24/7/2023
Error: failed to meet quorum (method="getLogs", params={"filter":{"fromBlock":"0x1cdadaf","toBlock":"0x1cdb4b0","address":"0xf86DDA825885674F85C5420079E1Df1bC0F372c6","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e"]}}, results=[{"weight":1,"start":1690356021993,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":73,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":73,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed.binance.org/"}},{"weight":1,"start":1690356022757,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":67,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":67,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.defibit.io/"}},{"weight":1,"start":1690356023513,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":69,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":69,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed1.ninicoin.io/"}},{"weight":1,"start":1690356024272,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":69,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":69,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.defibit.io/"}},{"weight":1,"start":1690356025022,"error":{"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":68,\"error\":{\"code\":-32005,\"message\":\"limit exceeded\"}}","error":{"code":-32005},"requestBody":"{\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x1cdadaf\",\"toBlock\":\"0x1cdb4b0\",\"address\":\"0xf86dda825885674f85c5420079e1df1bc0f372c6\",\"topics\":[\"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\",null,\"0x000000000000000000000000d77e9062c6df3f2d1cb5bf45855fa1e7712a059e\"]}],\"id\":68,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://bsc-dataseed2.ninicoin.io/"}}], provider={"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294043,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356006546,"providerConfigs":[{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":-2},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294048,"_lastBlockNumber":-2,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356022761,"connection":{"url":"https://bsc-dataseed.binance.org/"},"_nextId":75,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_fastBlockNumber":30294048,"_fastBlockNumberPromise":{}},"priority":0,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294045},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294049,"_lastBlockNumber":30294045,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356024266,"connection":{"url":"https://bsc-dataseed1.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294049,"_fastBlockNumberPromise":{}},"priority":1,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294045},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294048,"_lastBlockNumber":30294045,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356024261,"connection":{"url":"https://bsc-dataseed1.ninicoin.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294048,"_fastBlockNumberPromise":{}},"priority":2,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294045},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294049,"_lastBlockNumber":30294045,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356025024,"connection":{"url":"https://bsc-dataseed2.defibit.io/"},"_nextId":71,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294049,"_fastBlockNumberPromise":{}},"priority":3,"stallTimeout":750,"weight":1},{"provider":{"_isProvider":true,"_events":[],"_emitted":{"block":30294046},"disableCcipRead":false,"formatter":{"formats":{"transaction":{},"transactionRequest":{},"receiptLog":{},"receipt":{},"block":{},"blockWithTransactions":{},"filter":{},"filterLog":{}}},"anyNetwork":false,"_network":{"name":"bsc","chainId":56},"_maxInternalBlockNumber":30294049,"_lastBlockNumber":30294046,"_maxFilterBlockRange":10,"_pollingInterval":4000,"_fastQueryDate":1690356025025,"connection":{"url":"https://bsc-dataseed2.ninicoin.io/"},"_nextId":70,"_eventLoopCache":{"eth_blockNumber":null},"_internalBlockNumber":{},"_poller":null,"_bootstrapPoll":null,"_fastBlockNumber":30294049,"_fastBlockNumberPromise":{}},"priority":4,"stallTimeout":750,"weight":1}],"quorum":1,"_highestBlockNumber":30294043,"_internalBlockNumber":{},"_fastBlockNumber":30294043,"_fastBlockNumberPromise":{}}, code=SERVER_ERROR, version=providers/5.7.2)
    at Logger.makeError (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
    at Logger.throwError (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
    at FallbackProvider.<anonymous> (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/src.ts/fallback-provider.ts:645:23)
    at step (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/lib/fallback-provider.js:48:23)
    at Object.next (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/lib/fallback-provider.js:29:53)
    at fulfilled (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@ethersproject/providers/lib/fallback-provider.js:20:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  reason: 'failed to meet quorum',
  code: 'SERVER_ERROR',
  method: 'getLogs',
  params: {
    filter: {
      fromBlock: '0x1cdadaf',
      toBlock: '0x1cdb4b0',
      address: '0xf86DDA825885674F85C5420079E1Df1bC0F372c6',
      topics: [Array]
    }
  },
  results: [
    { weight: 1, start: 1690356021993, error: [Error] },
    { weight: 1, start: 1690356022757, error: [Error] },
    { weight: 1, start: 1690356023513, error: [Error] },
    { weight: 1, start: 1690356024272, error: [Error] },
    { weight: 1, start: 1690356025022, error: [Error] }
  ],
  provider: FallbackProvider {
    _isProvider: true,
    _events: [],
    _emitted: { block: -2 },
    disableCcipRead: false,
    formatter: Formatter { formats: [Object] },
    anyNetwork: false,
    _network: { name: 'bsc', chainId: 56 },
    _maxInternalBlockNumber: 30294043,
    _lastBlockNumber: -2,
    _maxFilterBlockRange: 10,
    _pollingInterval: 4000,
    _fastQueryDate: 1690356006546,
    providerConfigs: [ [Object], [Object], [Object], [Object], [Object] ],
    quorum: 1,
    _highestBlockNumber: 30294043,
    _internalBlockNumber: Promise { [Object] },
    _fastBlockNumber: 30294043,
    _fastBlockNumberPromise: Promise { 30294043 }
  }
}




Done in 23.25s.

@dtmkeng dtmkeng merged commit 529c5f2 into DefiLlama:master Jul 26, 2023
2 checks passed
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