Skip to content

Commit

Permalink
Merge pull request #307 from Instadapp/switch-avocado-fla
Browse files Browse the repository at this point in the history
Switch avocado FLA
  • Loading branch information
shriyatyagii authored Jul 24, 2024
2 parents fa60e51 + b23c0ac commit 39eee09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.88",
"version": "0.6.89",
"description": "DSA connect",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
6 changes: 3 additions & 3 deletions src/resolvers/avocado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const AvoMultiPaybackMapping: Record<ChainId, string> = {
8453: "0xa35369EE97c9C64623262D625d697a7CaaB69Ea2", // Base
}

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

export interface AvocadoAction {
Expand Down Expand Up @@ -117,7 +117,7 @@ export class Avocado {
]

return {
target: isFluid ? FLA_FLUID_ADDRESS : FLA_AVOCADO_ADDRESS,
target: FLA_FLUID_ADDRESS,
data: this.dsa.web3.eth.abi.encodeFunctionCall(flaAvocadoOrFluidABI as any, params),
operation: 2,
value: 0
Expand All @@ -131,7 +131,7 @@ export class Avocado {
data: this.dsa.web3.eth.abi.encodeFunctionCall(
multiTransferABI as any,
[
isFluid ? FLA_FLUID_ADDRESS : FLA_AVOCADO_ADDRESS,
FLA_FLUID_ADDRESS,
tokens,
amounts
]
Expand Down

0 comments on commit 39eee09

Please sign in to comment.