From 5211c713b4050fc9780c37313fcaeebd6f2a0b62 Mon Sep 17 00:00:00 2001 From: Shriya Tyagi Date: Wed, 10 Jul 2024 21:17:08 +0530 Subject: [PATCH] feat: add multi payback --- package.json | 2 +- src/resolvers/avocado.ts | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0920f0c2..c3c30e1b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/resolvers/avocado.ts b/src/resolvers/avocado.ts index 79bf8d83..c184dacf 100644 --- a/src/resolvers/avocado.ts +++ b/src/resolvers/avocado.ts @@ -36,9 +36,19 @@ const AvoConnectorMapping: Record> = { 8453: {}, } +const AvoMultiPaybackMapping: Record = { + 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; @@ -123,7 +133,7 @@ export class Avocado { amounts ] ), - target: MULTI_PAYBACK_ADDRESS, + target: AvoMultiPaybackMapping[chainId], operation: 1, value: 0 }