Skip to content

Commit

Permalink
Allow native USDC openWithPermit function
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Feb 23, 2024
1 parent 10d6a9b commit aa5e3fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/PublicRequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ export interface PolygonHtlcCreationInstructions extends RelayRequest {
type: 'USDC';
/**
* The sender's nonce in the token contract, required when calling the
* contract function `openWithApproval`.
* contract function `openWithPermit`.
*/
approval?: {
permit?: {
tokenNonce: number,
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export interface ParsedSetupSwapRequest extends ParsedSimpleRequest {
refundAddress: string,
} | ({
type: SwapAsset.USDC,
approval?: {
permit?: {
tokenNonce: number,
},
} & RelayRequest) | {
Expand Down
2 changes: 1 addition & 1 deletion src/views/SetupSwap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class SetupSwap extends BitcoinSyncBaseView {
keyPath: signer.path,
request: this.request.fund.request,
relayData: this.request.fund.relayData,
approval: this.request.fund.approval,
permit: this.request.fund.permit,
};
}
Expand Down

0 comments on commit aa5e3fc

Please sign in to comment.