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

V3 canary #454

Merged
merged 38 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e9c3a76
lower case all contracts in config
franzns Sep 5, 2023
4b000ae
APR Services - Add some yield tokens APR to linear pools (#396)
lgahdl Sep 6, 2023
6c621f7
bal apr range for mainnet
franzns Sep 6, 2023
0ae2f35
fix fantom apr services
franzns Sep 6, 2023
d50bcb8
gauge apr fix
franzns Sep 6, 2023
97c22c8
needs to run as transaction
franzns Sep 6, 2023
93a464e
add missing factories
franzns Sep 6, 2023
5c69fc3
Aprs fixes (#447)
gmbronco Sep 6, 2023
f5bba34
fix: Delete votingGauge entry before deleting a staking gauge. (#449)
johngrantuk Sep 7, 2023
bf8c8ed
only apply fees to IB tokens if there is a price rate != 1.0
franzns Sep 7, 2023
9ddfbfd
pull swap fee apr to top, dont collect fees on nested pools without r…
franzns Sep 7, 2023
cd78056
fix: Delete associate PoolGyroData when deleting pool. (#450)
johngrantuk Sep 7, 2023
b2bfc19
change apr title
franzns Sep 7, 2023
9e925a5
check for liquidity
franzns Sep 7, 2023
7bd02c4
enabling sentry
franzns Sep 8, 2023
0668d60
sync gauge version, allow for reload
franzns Sep 8, 2023
a15481c
fix gauge service
franzns Sep 8, 2023
8634adc
set transaction name for sentry
franzns Sep 8, 2023
e9a9791
take tokens decimals into account for gauge reward rate
franzns Sep 8, 2023
94f9fe3
use job id including chain for sentry
franzns Sep 8, 2023
4cd1b7a
change bal address for base
franzns Sep 11, 2023
5de90d4
add todo
franzns Sep 11, 2023
67b6a91
exclude new tarot token from cg feed
franzns Sep 11, 2023
2595c7e
reduce cron frequency for unused
franzns Sep 11, 2023
79338cd
IB Yield APR Service - Adding new tokens and handlers (#451)
lgahdl Sep 13, 2023
172a336
cleanup crons scheduling
franzns Sep 13, 2023
a97d865
lower coingecko calls
franzns Sep 13, 2023
14f0d82
increase alarm period for canary
franzns Sep 13, 2023
977a434
only use public rpc for mainnet and zkevm on test
franzns Sep 13, 2023
8a3e6bd
change public rpc for arb and polygon
franzns Sep 13, 2023
36ea35d
use balancer subgraph
franzns Sep 13, 2023
5c65c79
alarm logging
franzns Sep 14, 2023
7627e10
more logs
franzns Sep 14, 2023
7768046
change alarm name prefix
franzns Sep 14, 2023
da55999
lower interval for canary job
franzns Sep 14, 2023
17234d6
adding vebal info for avax
franzns Sep 14, 2023
dc06f18
rpcs
franzns Sep 14, 2023
ee27530
adding authorized keys
franzns Sep 14, 2023
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
8 changes: 8 additions & 0 deletions .ebextensions/authorized_keys.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
files:
/home/ec2-user/.ssh/authorized_keys:
mode: "000400"
owner: ec2-user
group: ec2-user
content: |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGz3W7S/VsrL4jmGi4uoJAb2lbYnqo5w0odNY9Tm87JY franz
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCg8iNWpdp2RNB7a20CEaq3hwVQDjIfKrLx7GuLxwcDeRoj+0ypJ9w+XYhAfGeAAetqBK+6vx1UMRGrk0wZcs6ZOFQs7QP4KPqljPxTKOidAok7xC831NPyo2WssNKtTPTDtcWpssrPcJfDWteNTmCMB+zaqklxIrTygV4VqhJV+VHW+2JYyV3e26PjwexYBZpaKeD2hyIF2Kt5CN2wJMn+ZANE+7M0qEKF6Wdx9DKhZGk3kpPA4v2TrpclI+9pQi20Y8LJfawHwVizFEhEiHgnfO4AX2wN5oxwKwN8ziuMKEw4R9Alp4JPwaTqORWMuiSQLnKeJxqHf8WJP98VziAXGpVpKKB2dw6JCSrMCodoCOHp8wxn8gc9XCj1gldBXyhFE1hfLonAlxKdeGnaL0VuFGm3RQHnkMgTlp2kteW8s+lPjNMrEXHcRAHQZ+17SQr9ANJhulOQZlz5UDG7cxh330YJi6hnkHv1pJuXwtfJ+NQqrdmTRauLor39uzVMFII0QK6zUAgHnpcVQ3Sc/gkXKrTXrBwFZXV9e7COVC64XCl2/4lrqW6qovO1YWa7OU+uxcOOb2Aj9EX4ZsF3i7NxjJBbqwfOc/BLDHKaQic5cGwnHx/7U5HWkDMFBlTgaSCj+ifWbUUMaoypU5L7WcYWF0XiE2mwUIg+t3uHzFsTYQ== jarek
2 changes: 1 addition & 1 deletion env.local
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SENTRY_AUTH_TOKEN=<insert-me>
APOLLO_GRAPH_REF=<not-required-if-reporting-false>
APOLLO_API_KEY=<not-required-if-reporting-false>

INFURA_API_KEY=<insert key>
INFURA_API_KEY=

# Admin routes
ADMIN_API_KEY=<chose-a-value>
Expand Down
2 changes: 1 addition & 1 deletion modules/coingecko/coingecko.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ interface CoinId {
that happen.

*/
const tokensPerInterval = env.COINGECKO_API_KEY ? ((env.DEPLOYMENT_ENV as DeploymentEnv) === 'main' ? 10 : 6) : 3;
const tokensPerInterval = env.COINGECKO_API_KEY ? ((env.DEPLOYMENT_ENV as DeploymentEnv) === 'main' ? 10 : 5) : 3;
const requestRateLimiter = new RateLimiter({ tokensPerInterval, interval: 'minute' });

export class CoingeckoService {
Expand Down
201 changes: 201 additions & 0 deletions modules/network/apr-config-types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
export interface IbAprConfig {
aave?: AaveAprConfig;
ankr?: AnkrAprConfig;
bloom?: BloomAprConfig;
beefy?: BeefyAprConfig;
euler?: EulerAprConfig;
gearbox?: GearBoxAprConfig;
idle?: IdleAprConfig;
maker?: MakerAprConfig;
ovix?: OvixAprConfig;
reaper?: ReaperAprConfig;
tessera?: TesseraAprConfig;
tetu?: TetuAprConfig;
tranchess?: TranchessAprConfig;
yearn?: YearnAprConfig;
defaultHandlers?: DefaultHandlerAprConfig;
fixedAprHandler?: FixedAprConfig;
}

export interface AaveAprConfig {
[version: string]: {
subgraphUrl: string;
tokens: {
[underlyingAssetName: string]: {
underlyingAssetAddress: string;
aTokenAddress: string;
wrappedTokens: {
[wrappedTokenName: string]: string;
};
isIbYield?: boolean;
};
};
};
}

export interface AnkrAprConfig {
sourceUrl: string;
tokens: {
[underlyingAssetName: string]: {
address: string;
serviceName: string;
isIbYield?: boolean;
};
};
}

export interface BeefyAprConfig {
sourceUrl: string;
tokens: {
[tokenName: string]: {
address: string;
// To get the vaultId, get the vault address from the token contract(token.vault()),
// and search for the vault address in the link: https://api.beefy.finance/vaults
vaultId: string;
isIbYield?: boolean;
};
};
}

export interface BloomAprConfig {
tokens: {
[tokenName: string]: {
address: string;
feedAddress: string;
isIbYield?: boolean;
};
};
}

export interface EulerAprConfig {
subgraphUrl: string;
tokens: {
[tokenName: string]: {
address: string;
isIbYield?: boolean;
};
};
}

export interface GearBoxAprConfig {
sourceUrl: string;
tokens: {
[tokenName: string]: {
address: string;
isIbYield?: boolean;
};
};
}

export interface IdleAprConfig {
sourceUrl: string;
authorizationHeader: string;
tokens: {
[tokenName: string]: {
address: string;
wrapped4626Address: string;
isIbYield?: boolean;
};
};
}

export interface MakerAprConfig {
tokens: {
[tokenName: string]: {
address: string;
potAddress: string;
isIbYield?: boolean;
};
};
}

export interface OvixAprConfig {
tokens: {
[tokenName: string]: {
yieldAddress: string;
wrappedAddress: string;
isIbYield?: boolean;
};
};
}

export interface ReaperAprConfig {
subgraphSource?: {
subgraphUrl: string;
tokens: {
[tokenName: string]: {
address: string;
isSftmX?: boolean;
isWstETH?: boolean;
isIbYield?: boolean;
};
};
};
onchainSource?: {
averageAPRAcrossLastNHarvests: number;
tokens: {
[tokenName: string]: {
address: string;
isSftmX?: boolean;
isWstETH?: boolean;
isIbYield?: boolean;
};
};
};
}

export interface TesseraAprConfig {
tokens: {
[tokenName: string]: {
tesseraPoolAddress: string;
tokenAddress: string;
isIbYield?: boolean;
};
};
}

export interface TetuAprConfig {
sourceUrl: string;
tokens: {
[tokenName: string]: {
address: string;
isIbYield?: boolean;
};
};
}

export interface TranchessAprConfig {
sourceUrl: string;
tokens: {
[tokenName: string]: {
address: string;
underlyingAssetName: string;
isIbYield?: boolean;
};
};
}

export interface YearnAprConfig {
sourceUrl: string;
isIbYield?: boolean;
}

export interface DefaultHandlerAprConfig {
[tokenName: string]: {
sourceUrl: string;
tokenAddress: string;
path?: string;
scale?: number;
group?: string;
isIbYield?: boolean;
};
}

export interface FixedAprConfig {
[tokenName: string]: {
address: string;
apr: number;
group?: string;
isIbYield?: boolean;
};
}
Loading