Skip to content

Commit

Permalink
Revert "YB tokens refactor, new Maker on Gnosis source" (#488)
Browse files Browse the repository at this point in the history
Revert "YB tokens refactor, new Maker on Gnosis source (#487)"

This reverts commit a6c1867.
  • Loading branch information
gmbronco authored Oct 19, 2023
1 parent a6c1867 commit c177c31
Show file tree
Hide file tree
Showing 31 changed files with 212 additions and 316 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ node_modules/
*-error.log
**/generated/*

debug
debug.ts
schema.ts
debug.ts
graphql_schema_generated*.ts
i18n/*
google-service-account.json
Expand Down
9 changes: 2 additions & 7 deletions modules/network/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,8 @@ export const arbitrumNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: arbitrumNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
arbitrumNetworkData.ibAprConfig,
arbitrumNetworkData.chain.prismaId,
arbitrumNetworkData.balancer.yieldProtocolFeePercentage,
arbitrumNetworkData.balancer.swapProtocolFeePercentage
),
new PhantomStableAprService(arbitrumNetworkData.chain.prismaId, arbitrumNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(arbitrumNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(arbitrumNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [arbitrumNetworkData.bal!.address]),
Expand Down
9 changes: 2 additions & 7 deletions modules/network/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,8 @@ export const avalancheNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: avalancheNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
avalancheNetworkData.ibAprConfig,
avalancheNetworkData.chain.prismaId,
avalancheNetworkData.balancer.yieldProtocolFeePercentage,
avalancheNetworkData.balancer.swapProtocolFeePercentage
),
new PhantomStableAprService(avalancheNetworkData.chain.prismaId, avalancheNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(avalancheNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(avalancheNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [avalancheNetworkData.bal!.address]),
Expand Down
7 changes: 1 addition & 6 deletions modules/network/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,7 @@ export const baseNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: baseNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
baseNetworkData.ibAprConfig,
baseNetworkData.chain.prismaId,
baseNetworkData.balancer.yieldProtocolFeePercentage,
baseNetworkData.balancer.swapProtocolFeePercentage
),
new IbTokensAprService(baseNetworkData.ibAprConfig),
new BoostedPoolAprService(),
new SwapFeeAprService(baseNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [baseNetworkData.bal!.address]),
Expand Down
9 changes: 2 additions & 7 deletions modules/network/fantom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,9 @@ export const fantomNetworkConfig: NetworkConfig = {
contentService: new SanityContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: fantomNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
fantomNetworkData.ibAprConfig,
fantomNetworkData.chain.prismaId,
fantomNetworkData.balancer.yieldProtocolFeePercentage,
fantomNetworkData.balancer.swapProtocolFeePercentage
),
new IbTokensAprService(fantomNetworkData.ibAprConfig),
// new SpookySwapAprService(tokenService, fantomNetworkData.spooky!.xBooContract),
new PhantomStableAprService(fantomNetworkData.chain.prismaId, fantomNetworkData.balancer.yieldProtocolFeePercentage),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(fantomNetworkData.balancer.swapProtocolFeePercentage),
new MasterchefFarmAprService(fantomNetworkData.beets!.address),
Expand Down
9 changes: 2 additions & 7 deletions modules/network/gnosis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,8 @@ export const gnosisNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: gnosisNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
gnosisNetworkData.ibAprConfig,
gnosisNetworkData.chain.prismaId,
gnosisNetworkData.balancer.yieldProtocolFeePercentage,
gnosisNetworkData.balancer.swapProtocolFeePercentage,
),
new PhantomStableAprService(gnosisNetworkData.chain.prismaId, gnosisNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(gnosisNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(gnosisNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [gnosisNetworkData.bal!.address]),
Expand Down
9 changes: 2 additions & 7 deletions modules/network/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,8 @@ export const mainnetNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: mainnetNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
mainnetNetworkData.ibAprConfig,
mainnetNetworkData.chain.prismaId,
mainnetNetworkData.balancer.yieldProtocolFeePercentage,
mainnetNetworkData.balancer.swapProtocolFeePercentage
),
new PhantomStableAprService(mainnetNetworkData.chain.prismaId, mainnetNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(mainnetNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(mainnetNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [mainnetNetworkData.bal!.address]),
Expand Down
9 changes: 2 additions & 7 deletions modules/network/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,8 @@ export const optimismNetworkConfig: NetworkConfig = {
contentService: new SanityContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: optimismNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
optimismNetworkData.ibAprConfig,
optimismNetworkData.chain.prismaId,
optimismNetworkData.balancer.yieldProtocolFeePercentage,
optimismNetworkData.balancer.swapProtocolFeePercentage,
),
new PhantomStableAprService(optimismNetworkData.chain.prismaId, optimismNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(optimismNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(optimismNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [
Expand Down
9 changes: 2 additions & 7 deletions modules/network/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,8 @@ export const polygonNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: polygonNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
polygonNetworkData.ibAprConfig,
polygonNetworkData.chain.prismaId,
polygonNetworkData.balancer.yieldProtocolFeePercentage,
polygonNetworkData.balancer.swapProtocolFeePercentage
),
new PhantomStableAprService(polygonNetworkData.chain.prismaId, polygonNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(polygonNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(polygonNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [polygonNetworkData.bal!.address]),
Expand Down
9 changes: 2 additions & 7 deletions modules/network/zkevm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,8 @@ export const zkevmNetworkConfig: NetworkConfig = {
contentService: new GithubContentService(),
provider: new ethers.providers.JsonRpcProvider({ url: zkevmNetworkData.rpcUrl, timeout: 60000 }),
poolAprServices: [
new IbTokensAprService(
zkevmNetworkData.ibAprConfig,
zkevmNetworkData.chain.prismaId,
zkevmNetworkData.balancer.yieldProtocolFeePercentage,
zkevmNetworkData.balancer.swapProtocolFeePercentage,
),
new PhantomStableAprService(zkevmNetworkData.chain.prismaId, zkevmNetworkData.balancer.yieldProtocolFeePercentage),
new IbTokensAprService(zkevmNetworkData.ibAprConfig),
new PhantomStableAprService(),
new BoostedPoolAprService(),
new SwapFeeAprService(zkevmNetworkData.balancer.swapProtocolFeePercentage),
new GaugeAprService(tokenService, [zkevmNetworkData.bal!.address]),
Expand Down
Loading

0 comments on commit c177c31

Please sign in to comment.