Skip to content

Commit

Permalink
feat: add multi payback
Browse files Browse the repository at this point in the history
  • Loading branch information
shriyatyagii committed Jul 10, 2024
1 parent 0f01ff3 commit 5211c71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsa-connect",
"version": "0.6.85",
"version": "0.6.86",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
14 changes: 12 additions & 2 deletions src/resolvers/avocado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,19 @@ const AvoConnectorMapping: Record<ChainId, Record<string, string>> = {
8453: {},
}

const AvoMultiPaybackMapping: Record<ChainId, string> = {
1: "0xb03922E93c386B045b2a7f7e6732Ef4F3B93f993",
137: "",
42161: "0x62750CfEbDB196CAe6DD6956c13AD60682a614d0",
43114: "",
10: "",
250: "",
8453: "",
}

const FLA_AVOCADO_ADDRESS = "0x8d8B52e9354E2595425D00644178E2bA2257f42a" // Avocado
const FLA_FLUID_ADDRESS = "0x352423e2fA5D5c99343d371C9e3bC56C87723Cc7" // Fluid
const MULTI_PAYBACK_ADDRESS = "0xb03922E93c386B045b2a7f7e6732Ef4F3B93f993"
// const MULTI_PAYBACK_ADDRESS = "0xb03922E93c386B045b2a7f7e6732Ef4F3B93f993"

export interface AvocadoAction {
target: string;
Expand Down Expand Up @@ -123,7 +133,7 @@ export class Avocado {
amounts
]
),
target: MULTI_PAYBACK_ADDRESS,
target: AvoMultiPaybackMapping[chainId],
operation: 1,
value: 0
}
Expand Down

0 comments on commit 5211c71

Please sign in to comment.