Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YB tokens refactor, new Maker on Gnosis source #489

Merged
merged 7 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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