Skip to content

Commit

Permalink
feat: add optimism to adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Aug 1, 2024
1 parent 2337418 commit 47940a1
Show file tree
Hide file tree
Showing 4 changed files with 500 additions and 1,178 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@
},
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@defillama/sdk": "^5.0.71",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@defillama/sdk": "^5.0.76",
"@gearbox-protocol/eslint-config": "2.0.0-next.2",
"@gearbox-protocol/prettier-config": "2.0.0-next.0",
"@gearbox-protocol/sdk-gov": "^1.57.1",
"@semantic-release/exec": "^6.0.3",
"eslint": "^8.57.0",
"ethers": "^6.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"tsup": "^8.0.2",
"typescript": "^5.4.3"
"ethers": "^6.13.2",
"husky": "^9.1.4",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3",
"tsup": "^8.2.3",
"typescript": "^5.5.4"
},
"commitlint": {
"extends": [
Expand All @@ -58,5 +57,6 @@
],
"*.{json,md}": "prettier --write",
"*.sol": "forge fmt"
}
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
1 change: 1 addition & 0 deletions src/adapter/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const ADDRESS_PROVIDER_V3: Record<string, string> = {
ethereum: "0x9ea7b04da02a5373317d745c1571c84aad03321d",
arbitrum: "0x7d04eCdb892Ae074f03B5D0aBA03796F90F3F2af",
optimism: "0x3761ca4BFAcFCFFc1B8034e69F19116dD6756726",
};
3 changes: 3 additions & 0 deletions src/adapter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export default {
arbitrum: {
tvl,
},
optimism: {
tvl,
},
methodology: `Retrieves the tokens in each Gearbox pool (WETH/DAI/WBTC/USDC/wstETH) & value of all Credit Accounts (V1/V2/V3) denominated in the underlying token.`,
misrepresentedTokens: true,
};
Loading

0 comments on commit 47940a1

Please sign in to comment.