Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/permissionless/core/bytecode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface BytecodeShort
}

export interface BytecodeExtended extends Bytecode {
verificationData?: unknown;
deployments: Deployment[];
audits: Audit[];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type abi = typeof abi;
export class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract<abi> {
public readonly gateway: Address;
public readonly mToken: Address;
public readonly allowedTokens: Address[];
public readonly allowedTokens: { token: Address; phantomToken: Address }[];

constructor(
sdk: GearboxSDK,
Expand All @@ -26,12 +26,16 @@ export class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract
{ type: "address", name: "gateway" },
{ type: "address", name: "mToken" },
{ type: "address[]", name: "allowedTokens" },
{ type: "address[]", name: "allowedPhantomTokens" },
],
args.baseParams.serializedParams,
);

this.gateway = decoded[2];
this.mToken = decoded[3];
this.allowedTokens = [...decoded[4]];
this.allowedTokens = decoded[4].map((token, index) => ({
token,
phantomToken: decoded[5][index],
}));
}
}
Loading