-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Dracula * Adjust APY calculation * Adjust decimals
- Loading branch information
1 parent
278f849
commit 8bebd34
Showing
10 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/address-book/address-book/zksync/platforms/dracula.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const dracula = { | ||
router: '0x4D88434eDc8B7fFe215ec598C2290CdC6f58d12D', | ||
voter: '0x56A209955df2C74bFde45b335D4C46148652791d', | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const { ZKSYNC_CHAIN_ID: chainId } = require('../../../constants'); | ||
const { getSolidlyGaugeApys } = require('../common/getSolidlyGaugeApys'); | ||
|
||
const volatilePools = require('../../../data/zksync/draculaLpPools.json'); | ||
import { addressBook } from '../../../../packages/address-book/address-book'; | ||
const { | ||
zksync: { | ||
tokens: { FANG }, | ||
}, | ||
} = addressBook; | ||
|
||
const pools = [...volatilePools]; | ||
const getDraculaApys = async () => | ||
getSolidlyGaugeApys({ | ||
chainId: chainId, | ||
pools: pools, | ||
oracleId: 'FANG', | ||
oracle: 'tokens', | ||
decimals: '1e36', | ||
reward: FANG.address, | ||
// log: true, | ||
}); | ||
|
||
module.exports = getDraculaApys; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[ | ||
{ | ||
"name": "dracula-usdc-weth", | ||
"address": "0xB51E60f61c48d8329843F86d861AbF50E4DC918d", | ||
"gauge": "0xaD07E210F9DA6eBaC3fe2fe7765a7850C438A04f", | ||
"decimals": "1e18", | ||
"chainId": 324, | ||
"beefyFee": 0.095, | ||
"lp0": { | ||
"address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4", | ||
"oracle": "tokens", | ||
"oracleId": "USDC", | ||
"decimals": "1e6" | ||
}, | ||
"lp1": { | ||
"address": "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", | ||
"oracle": "tokens", | ||
"oracleId": "WETH", | ||
"decimals": "1e18" | ||
} | ||
}, | ||
{ | ||
"name": "dracula-fang-usdc", | ||
"address": "0x0F62837f7d37638210F94fa8005D0a89be083922", | ||
"gauge": "0xeed9Ec94676bbb8f51C4EB8809b447C9cB8a21Cd", | ||
"decimals": "1e18", | ||
"chainId": 324, | ||
"beefyFee": 0.095, | ||
"lp0": { | ||
"address": "0x160e07e42ADbC1FCE92D505B579Bcd8a3fBEa77d", | ||
"oracle": "tokens", | ||
"oracleId": "FANG", | ||
"decimals": "1e18" | ||
}, | ||
"lp1": { | ||
"address": "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4", | ||
"oracle": "tokens", | ||
"oracleId": "USDC", | ||
"decimals": "1e6" | ||
} | ||
} | ||
] |