Skip to content

Commit 77bfb5d

Browse files
authored
Merge pull request #384 from Gearbox-protocol/permissionless-fixes
fix: midas adapter, db bytecode type
2 parents d535423 + b40e6f8 commit 77bfb5d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/permissionless/core/bytecode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface BytecodeShort
2222
}
2323

2424
export interface BytecodeExtended extends Bytecode {
25+
verificationData?: unknown;
2526
deployments: Deployment[];
2627
audits: Audit[];
2728
}

src/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type abi = typeof abi;
1010
export class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract<abi> {
1111
public readonly gateway: Address;
1212
public readonly mToken: Address;
13-
public readonly allowedTokens: Address[];
13+
public readonly allowedTokens: { token: Address; phantomToken: Address }[];
1414

1515
constructor(
1616
sdk: GearboxSDK,
@@ -26,12 +26,16 @@ export class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract
2626
{ type: "address", name: "gateway" },
2727
{ type: "address", name: "mToken" },
2828
{ type: "address[]", name: "allowedTokens" },
29+
{ type: "address[]", name: "allowedPhantomTokens" },
2930
],
3031
args.baseParams.serializedParams,
3132
);
3233

3334
this.gateway = decoded[2];
3435
this.mToken = decoded[3];
35-
this.allowedTokens = [...decoded[4]];
36+
this.allowedTokens = decoded[4].map((token, index) => ({
37+
token,
38+
phantomToken: decoded[5][index],
39+
}));
3640
}
3741
}

0 commit comments

Comments
 (0)