File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
plugins/adapters/contracts Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export interface BytecodeShort
2222}
2323
2424export interface BytecodeExtended extends Bytecode {
25+ verificationData ?: unknown ;
2526 deployments : Deployment [ ] ;
2627 audits : Audit [ ] ;
2728}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type abi = typeof abi;
1010export 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}
You can’t perform that action at this time.
0 commit comments