Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:hop-exchange/hop into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jun 12, 2024
2 parents f9e9b67 + 81f680a commit 2c1317a
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/frontend",
"version": "0.0.12",
"version": "0.0.13",
"description": "Hop Protocol Frontend",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
8 changes: 7 additions & 1 deletion packages/frontend/src/config/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ const stakingRewardsContracts = {
},
arbitrum: {
rETH: '0x3D4cAD734B464Ed6EdCF6254C2A3e5fA5D449b32', // RPL rewards
ETH: '0x00001fcf29c5fd7846e4332afbfaa48701d727f5', // ARB rewards
USDT: '0xb8f90e115499082747ba5da94732863b12cb1f25', // ARB rewards
DAI: '0xbb9d66f7a7744c11550079045a177090e0015364', // ARB rewards
},
linea: {
ETH: '0xa50395bdEaca7062255109fedE012eFE63d6D402', // WETH rewards
Expand Down Expand Up @@ -133,7 +136,10 @@ export const stakingRewardTokens = {
'0x266e2dc3c4c59e42aa07afee5b09e964cffe6778': 'RPL',
},
arbitrum: {
'0x3d4cad734b464ed6edcf6254c2a3e5fa5d449b32': 'RPL'
'0x3d4cad734b464ed6edcf6254c2a3e5fa5d449b32': 'RPL',
'0x00001fcf29c5fd7846e4332afbfaa48701d727f5': 'ARB',
'0xb8f90e115499082747ba5da94732863b12cb1f25': 'ARB',
'0xbb9d66f7a7744c11550079045a177090e0015364': 'ARB',
},
linea: {
'0xa50395bdeaca7062255109fede012efe63d6d402': 'WETH'
Expand Down
2 changes: 1 addition & 1 deletion packages/hop-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/hop-node",
"version": "0.0.18",
"version": "0.0.19",
"description": "The V1 Hop Node for Hop Protocol",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/sdk",
"version": "0.0.36",
"version": "0.0.37",
"description": "The v1 Hop Protocol TypeScript SDK",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
15 changes: 12 additions & 3 deletions packages/sdk/src/addresses/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,10 @@ export const addresses: Addresses = {
base: ['0x7aC115536FE3A185100B2c4DE4cb328bf3A58Ba6'] // HOP
},
USDT: {
arbitrum: ['0x9Dd8685463285aD5a94D2c128bda3c5e8a6173c8'], // HOP
arbitrum: [
'0x9Dd8685463285aD5a94D2c128bda3c5e8a6173c8', // HOP
'0xb8f90e115499082747ba5da94732863b12cb1f25' // ARB
],
optimism: ['0xAeB1b49921E0D2D96FcDBe0D486190B2907B3e0B'], // HOP
polygon: [
'0x07932e9A5AB8800922B2688FB1FA0DAAd8341772', // WMATIC
Expand All @@ -424,7 +427,10 @@ export const addresses: Addresses = {
]
},
DAI: {
arbitrum: ['0xd4D28588ac1D9EF272aa29d4424e3E2A03789D1E'], // HOP
arbitrum: [
'0xd4D28588ac1D9EF272aa29d4424e3E2A03789D1E', // HOP
'0xbb9d66f7a7744c11550079045a177090e0015364' // ARB
],
optimism: ['0x392B9780cFD362bD6951edFA9eBc31e68748b190'], // HOP
polygon: [
'0x4Aeb0B5B1F3e74314A7Fa934dB090af603E8289b', // WMATIC
Expand All @@ -439,7 +445,10 @@ export const addresses: Addresses = {
polygon: ['0x7dEEbCaD1416110022F444B03aEb1D20eB4Ea53f'] // WMATIC
},
ETH: {
arbitrum: ['0x755569159598f3702bdD7DFF6233A317C156d3Dd'], // HOP
arbitrum: [
'0x755569159598f3702bdD7DFF6233A317C156d3Dd', // HOP
'0x00001fcf29c5fd7846e4332afbfaa48701d727f5' // ARB
],
optimism: ['0x95d6A95BECfd98a7032Ed0c7d950ff6e0Fa8d697'], // HOP
polygon: [
'0x7bCeDA1Db99D64F25eFA279BB11CE48E15Fda427', // WMATIC
Expand Down
2 changes: 1 addition & 1 deletion packages/stats-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/stats-worker",
"version": "0.0.1",
"version": "0.0.3",
"description": "Hop Protocol Stats Worker",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
9 changes: 9 additions & 0 deletions packages/stats-worker/src/YieldStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,19 @@ class YieldStats {
}

async getYieldData (token: string, chain: string): Promise<YieldDataRes> {
if (token === 'USDC' || token === 'USDC.e') {
return {
apr: 0,
apy: 0,
tvlUsd: 0,
dailyVolume: 0
}
}
const bridge = this.sdk.bridge(token)
const amm = bridge.getAmm(chain)
const etherscanApiKey = etherscanApiKeys[chain]
const days = 1
console.log(token)
const { apr, apy, volumeFormatted } = await amm.getYieldData(days, etherscanApiKey)
const tvl = await bridge.getTvlUsd(chain)
return {
Expand Down

0 comments on commit 2c1317a

Please sign in to comment.