bronto

Epoch

Epoch flip occurs every Thursday at 12:00 AM UTC.

  1. getAllEpochs

Fetch a list of latest epochs for all pools.

Usage

const epochs = await sdk.Epoch.getAllEpochs(provider, limit, offset);
console.log({ epochs });

Params

  • provider: Ethers Provider

  • limit: Number of pools to fetch

  • offset: Offset for pagination

Returns

EpochInfo[]

  1. getEpochByPool

Fetch a list of epochs for a specific pool.

Usage

const epochs = await sdk.Epoch.getEpochByPool(provider, limit, offset, poolAddress);
console.log({ epochs });

Params

  • provider: Ethers Provider

  • limit: Number of epochs to fetch

  • offset: Offset for pagination

  • poolAddress: Address of the pool

Returns

EpochInfo[]

On this page