Synthetix fees - l1/l2/l2perps

Hi All,

Please find current adapter for the synthetix protocol, mainnet, l2 and l2 perpetual futures


Hey @jz_synthetix, so sorry for the delayed response!

Overall, this adapter looks good! But a couple small fixes before we can include it:

  • Make sure to “bundle” the different adapters. You can look at the Uniswap Adapter for an example of how to do bundles.
  • If there’s a query for the current day, the query should fail. Otherwise, the system might cache incomplete fee data, underreporting for that day.

Let me know if you have any questions about this!

Thanks @David . I’ve updated our adapter to include the bundle id as well as return null if there are no results for the next day (as uniswap is doing). Let me know if you need anything else.

Looks great! But one last thing, can you register the bundle as well? I think it’s just adding the line sdk.registerBundle('synthetix', metadata);

No worries - updated