Skip to content

Commit

Permalink
v5.3.9
Browse files Browse the repository at this point in the history
v5.3.9
  • Loading branch information
platschi authored Jan 14, 2023
2 parents ef2d93e + 41553db commit 93b2700
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/services/futures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ export default class FuturesService {
amount: BigNumber = ethers.constants.MaxUint256
) {
if (!this.sdk.context.contracts.SUSD) throw new Error(UNSUPPORTED_NETWORK);
return this.sdk.context.contracts.SUSD.approve(crossMarginAddress, amount);
return this.sdk.transactions.createContractTxn(this.sdk.context.contracts.SUSD, 'approve', [
crossMarginAddress,
amount,
]);
}

public async depositCrossMargin(crossMarginAddress: string, amount: Wei) {
Expand Down

1 comment on commit 93b2700

@vercel
Copy link

@vercel vercel bot commented on 93b2700 Jan 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kwenta – ./

kwenta-kwenta.vercel.app
dev.kwenta.io
kwenta.io
kwenta-git-main-kwenta.vercel.app

Please sign in to comment.