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

feat: add stk AAVE wstETH BPTv2 #330

Merged
merged 2 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion scripts/generator/safetyModuleGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ const SAFETY_MODULE = {
STK_AAVE: '0x4da27a545c0c5B758a6BA100e3a049001de870f5',
STK_ABPT: '0xa1116930326D21fB917d5A27F1E9943A9595fb47',
STK_ABPT_ORACLE: '0x209Ad99bd808221293d03827B86cC544bcA0023b',
STK_ABPT_V2_ORACLE: '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7',
STK_GHO: '0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d',
STK_AAVE_WSTETH_BPTV2: '0x9eDA81C21C273a82BE9Bbc19B6A6182212068101',
STK_AAVE_WSTETH_BPTV2_ORACLE: '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7',
} as const;

export function generateSafetyModule() {
Expand Down
10 changes: 7 additions & 3 deletions src/AaveSafetyModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ library AaveSafetyModule {
// https://etherscan.io/address/0x209Ad99bd808221293d03827B86cC544bcA0023b
address internal constant STK_ABPT_ORACLE = 0x209Ad99bd808221293d03827B86cC544bcA0023b;

// https://etherscan.io/address/0xADf86b537eF08591c2777E144322E8b0Ca7E82a7
address internal constant STK_ABPT_V2_ORACLE = 0xADf86b537eF08591c2777E144322E8b0Ca7E82a7;

// https://etherscan.io/address/0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d
address internal constant STK_GHO = 0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d;

// https://etherscan.io/address/0x9eDA81C21C273a82BE9Bbc19B6A6182212068101
address internal constant STK_AAVE_WSTETH_BPTV2 = 0x9eDA81C21C273a82BE9Bbc19B6A6182212068101;

// https://etherscan.io/address/0xADf86b537eF08591c2777E144322E8b0Ca7E82a7
address internal constant STK_AAVE_WSTETH_BPTV2_ORACLE =
0xADf86b537eF08591c2777E144322E8b0Ca7E82a7;
}
9 changes: 6 additions & 3 deletions src/ts/AaveSafetyModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ export const STK_ABPT = '0xa1116930326D21fB917d5A27F1E9943A9595fb47';
// https://etherscan.io/address/0x209Ad99bd808221293d03827B86cC544bcA0023b
export const STK_ABPT_ORACLE = '0x209Ad99bd808221293d03827B86cC544bcA0023b';

// https://etherscan.io/address/0xADf86b537eF08591c2777E144322E8b0Ca7E82a7
export const STK_ABPT_V2_ORACLE = '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7';

// https://etherscan.io/address/0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d
export const STK_GHO = '0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d';

// https://etherscan.io/address/0x9eDA81C21C273a82BE9Bbc19B6A6182212068101
export const STK_AAVE_WSTETH_BPTV2 = '0x9eDA81C21C273a82BE9Bbc19B6A6182212068101';

// https://etherscan.io/address/0xADf86b537eF08591c2777E144322E8b0Ca7E82a7
export const STK_AAVE_WSTETH_BPTV2_ORACLE = '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7';