Skip to content

Commit

Permalink
using gaugeController when a timestamp is passed, even on Mainnet;
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Gustavo Abou Hatem De Liz committed Aug 11, 2023
1 parent bbe699d commit 0f45d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balancer-js/src/modules/data/gauge-controller/multicall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GaugeControllerMulticallRepository {
): Promise<{ [gaugeAddress: string]: number }> {
const payload = gaugeAddresses.map((gaugeAddress) => {
// The checkpointer only exists for mainnet, if the network is a testnet, it'll use the regular gauge controller
if (this.gaugeControllerCheckpointerAddress) {
if (this.gaugeControllerCheckpointerAddress && !timestamp) {
return {
target: this.gaugeControllerCheckpointerAddress,
callData: gaugeControllerCheckpointerInterface.encodeFunctionData(
Expand Down

0 comments on commit 0f45d2a

Please sign in to comment.