Skip to content

Commit

Permalink
feat: add flashmint leveraged aerodrome (#113)
Browse files Browse the repository at this point in the history
* update tokenlists

* add tests for issuance modules

* add leveraged aerodrome address + abi

* add contract functions

* lint

* update import sorting

* add builder

* fix typo

* add export

* add leveraged aerodrome quote provider

* add test for minting w/ erc20s

* remove log

* add remaining quote provider tests

* integrate leveraged aerodrome quote provider

* add integration tests

* remove obsolete check for iceth

* add tests for usdc. update slippage for redeem to eth

* enable base tests

* update signers for bast tests

* update signer for eth3x

* remove obsolete argument

* skip eth3x tests

* up slippage

* add aerodrome as an exchange
  • Loading branch information
janndriessen authored Jan 16, 2025
1 parent e72d686 commit 0d88991
Show file tree
Hide file tree
Showing 37 changed files with 2,016 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: npm run test:quotes
# - run: npm run test:btc2xeth
# - run: npm run test:eth2xbtc
# - run: npm run test:base
- run: npm run test:base
- run: npm run test:icusd
- run: npm run test:hyeth
# - run: npm run test:btc2x
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"editor.codeActionsOnSave":{
"source.organizeImports.biome": "explicit"
},
"editor.defaultFormatter": "biomejs.biome",
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ contract for that specific Index token.
Use the [utility](./src/utils/contracts.ts) functions for easily obtaining
the correct addresses and contracts.

## Develoment
## Development

### .env vars

Expand Down
91 changes: 47 additions & 44 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"include": ["src/**"],
"ignoreUnknown": false,
"ignore": ["node_modules", "cache", "coverage", "dist", "build"]
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "warn"
},
"style": {
"noNonNullAssertion": "off",
"noUselessElse": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noFocusedTests": "off"
}
}
},
"javascript": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"quoteProperties": "preserve",
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"include": ["src/**"],
"ignoreUnknown": false,
"ignore": ["node_modules", "cache", "coverage", "dist", "build"]
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "warn"
},
"correctness": {
"noUnusedImports": "error"
},
"style": {
"noNonNullAssertion": "off",
"noUselessElse": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noFocusedTests": "off"
}
}
},
"javascript": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"quoteProperties": "preserve",
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
}
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@ethersproject/contracts": "^5.6.2",
"@ethersproject/providers": "^5.6.8",
"@ethersproject/units": "^5.6.1",
"@indexcoop/tokenlists": "3.3.0",
"@indexcoop/tokenlists": "3.8.0",
"@lifi/sdk": "3.0.0-beta.1",
"@uniswap/sdk-core": "^5.3.1",
"@uniswap/v3-sdk": "^3.13.1",
Expand Down
Loading

0 comments on commit 0d88991

Please sign in to comment.