diff --git a/src/background/utils.ts b/src/background/utils.ts index d18806e2..023fb383 100644 --- a/src/background/utils.ts +++ b/src/background/utils.ts @@ -40,10 +40,11 @@ export const toAmount = ({ recurring, assetScale }: ToAmountParams): WalletAmount => { + const interval = `R/${new Date().toISOString()}/P1M` + return { value: Math.floor(parseFloat(value) * 10 ** assetScale).toString(), - // TODO: Create repeating interval - ...(recurring ? { interval: new Date().toISOString() } : {}) + ...(recurring ? { interval } : {}) } }