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

RYE Optimism vault #9751

Closed
wants to merge 38 commits into from
Closed
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
9ecc77f
Sommelier: Add RYBTC launch and remove Steady, Trend, & MOM vault lau…
philipjames44 Aug 30, 2023
5e0a189
Sommelier: Add Turbo GHO vault
philipjames44 Sep 11, 2023
d139f38
Merge branch 'DefiLlama:main' into main
philipjames44 Sep 11, 2023
2829cfb
Update start block
philipjames44 Sep 12, 2023
8d3a0b3
Merge pull request #2 from PeggyJV/turbo-gho
philipjames44 Sep 12, 2023
5788dea
Sommelier: Dedupe vaults taking position in ssister vaults from TVL
philipjames44 Sep 14, 2023
8be04d3
Merge pull request #3 from PeggyJV/dedupe-cellars-depositing-to-other…
philipjames44 Sep 14, 2023
27a420b
Merge branch 'main' into main
philipjames44 Sep 14, 2023
7eb9739
Add ETH Growth vault
philipjames44 Sep 18, 2023
fd61691
Merge branch 'main' of https://github.com/PeggyJV/DefiLlama-Adapters
philipjames44 Sep 18, 2023
fe1b37b
Add turbo steth cellar
philipjames44 Oct 12, 2023
8794569
Merge branch 'main' of https://github.com/PeggyJV/DefiLlama-Adapters
philipjames44 Oct 12, 2023
a23f6c6
Add Turbo SOMM
philipjames44 Nov 8, 2023
7ce60b1
Merge branch 'main' into main
philipjames44 Nov 8, 2023
66dc48a
Add Turbo eETH vault
philipjames44 Nov 22, 2023
ad629ae
Merge branch 'main' of https://github.com/PeggyJV/DefiLlama-Adapters
philipjames44 Nov 22, 2023
887c067
Merge branch 'main' of https://github.com/PeggyJV/DefiLlama-Adapters
philipjames44 Nov 22, 2023
aced7bb
Add new somm cellar
philipjames44 Dec 6, 2023
712a297
Merge branch 'main' into main
philipjames44 Dec 6, 2023
c8c1f04
Merge branch 'DefiLlama:main' into main
philipjames44 Jan 29, 2024
b4f110d
Sommelier: Add Morpho Maximizer
philipjames44 Jan 29, 2024
803ea8f
Merge branch 'main' of https://github.com/PeggyJV/DefiLlama-Adapters
philipjames44 Jan 29, 2024
fb56a7a
Add turbo diveth and turbo ethx vaults
philipjames44 Feb 1, 2024
5642bf3
Sommelier: Add Turbo eETH V2
philipjames44 Feb 8, 2024
254426f
Merge branch 'main' of https://github.com/PeggyJV/DefiLlama-Adapters
philipjames44 Feb 8, 2024
303db4d
Sommelier: Add Turbo eETH V2 vault
philipjames44 Feb 8, 2024
4fd7957
Sommelier: Arbitrum vaults
philipjames44 Feb 16, 2024
346b881
Fix Arbitrum TVL cals
philipjames44 Feb 16, 2024
8c2ad53
Merge branch 'DefiLlama:main' into main
philipjames44 Feb 16, 2024
ebdc537
RYUSD-ARB
Feb 20, 2024
6aa726f
Merge branch 'main' into main
Feb 20, 2024
889eb31
Turbo-RSETH
Mar 11, 2024
29e3ba4
Merge branch 'DefiLlama:main' into main
Mar 11, 2024
a0a98f7
Merge branch 'DefiLlama:main' into main
Mar 12, 2024
bf60ec3
Turbo-ezETH
Mar 12, 2024
37e3be0
Merge branch 'DefiLlama:main' into main
Apr 8, 2024
6f1a526
RYE-Opt
Apr 8, 2024
5b62a37
RYE-Opt
Apr 8, 2024
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
7 changes: 7 additions & 0 deletions projects/sommelier/cellar-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ const arbitrumCellarsV2p5 = [
{ id: REAL_YIELD_ETH_ARB, startBlock: 178830458 },
{ id: REAL_YIELD_USD_ARB, startBlock: 178141655 }];

// v2.5 Cellars on Optimism
const REAL_YIELD_ETH_OPT = "0xC47bB288178Ea40bF520a91826a3DEE9e0DbFA4C";

const optimismCellarsV2p5 = [
{ id: REAL_YIELD_ETH_OPT, startBlock:
116609168 }];


module.exports = {
Expand All @@ -90,5 +96,6 @@ module.exports = {
cellarsV2,
cellarsV2p5,
arbitrumCellarsV2p5,
optimismCellarsV2p5,
};

17 changes: 17 additions & 0 deletions projects/sommelier/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {
cellarsV2,
cellarsV2p5,
arbitrumCellarsV2p5,
optimismCellarsV2p5,
} = require("./cellar-constants");


Expand Down Expand Up @@ -63,7 +64,22 @@ async function arbitrum_tvl(api) {
cellars: arbitrumCellarsV2p5.map((cellar) => cellar.id),
ownersToDedupe: arbitrumCellarsV2p5,
});
}

async function optimism_tvl(api) {
const balances = {};
const { block } = api
const chainBlocks = {
[api.chain]: block
}
const baseOptions = { balances, chainBlocks };

await v2.sumTvl({
...baseOptions,
api,
cellars: optimismCellarsV2p5.map((cellar) => cellar.id),
ownersToDedupe: optimismCellarsV2p5,
});
return balances;
}

Expand All @@ -80,6 +96,7 @@ module.exports = {
start: 1656652494,
["ethereum"]: { tvl: ethereum_tvl },
["arbitrum"]: { tvl: arbitrum_tvl },
["optimism"]: { tvl: optimism_tvl },
hallmarks: [
[1658419200, "aave2 Cellar Launch"],
[1674671068, "Real Yield USD Cellar Launch"],
Expand Down
Loading