Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix: stargate - incorrect ve price (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonzgao authored Jul 28, 2022
1 parent f59b966 commit b33ec6b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/apps/stargate/arbitrum/stargate.ve.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ArbitrumStargateVeTokenFetcher implements PositionFetcher<AppTokenP
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/avalanche/stargate.ve.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AvalancheStargateVeTokenFetcher implements PositionFetcher<AppToken
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class BinanceSmartChainStargateVeTokenFetcher implements PositionFetcher<
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/ethereum/stargate.ve.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class EthereumStargateVeTokenFetcher implements PositionFetcher<AppTokenP
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/fantom/stargate.ve.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class FantomStargateVeTokenFetcher implements PositionFetcher<AppTokenPos
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/optimism/stargate.ve.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class OptimismStargateVeTokenFetcher implements PositionFetcher<AppTokenP
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}
2 changes: 1 addition & 1 deletion src/apps/stargate/polygon/stargate.ve.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class PolygonStargateVeTokenFetcher implements PositionFetcher<AppTokenPo
resolveContract: ({ address, network }) => this.contractFactory.stargateVe({ address, network }),
resolveUnderlyingTokenAddress: ({ multicall, contract }) => multicall.wrap(contract).token(),
resolveReserve: ({ multicall, contract }) => multicall.wrap(contract).totalSupply().then(Number),
resolvePricePerShare: ({ underlyingToken }) => underlyingToken.price,
resolvePricePerShare: () => 1,
});
}
}

0 comments on commit b33ec6b

Please sign in to comment.