Skip to content

Add support for "Swap and Stake" commands#232

Merged
GauravKarakoti merged 3 commits intoGauravKarakoti:mainfrom
Aditya8369:222
Feb 18, 2026
Merged

Add support for "Swap and Stake" commands#232
GauravKarakoti merged 3 commits intoGauravKarakoti:mainfrom
Aditya8369:222

Conversation

@Aditya8369
Copy link
Contributor

closes #222

@vercel
Copy link
Contributor

vercel bot commented Feb 17, 2026

@Aditya8369 is attempting to deploy a commit to the Gaurav's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for swapsmithminiapp canceled.

Name Link
🔨 Latest commit c23df6e
🔍 Latest deploy log https://app.netlify.com/projects/swapsmithminiapp/deploys/6995c3418b8c9500086690e4

@vercel
Copy link
Contributor

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
swap-smith Error Error Feb 18, 2026 1:50pm

@GauravKarakoti
Copy link
Owner

Lemme try

@GauravKarakoti GauravKarakoti merged commit 3108607 into GauravKarakoti:main Feb 18, 2026
4 of 7 checks passed
@GauravKarakoti
Copy link
Owner

Build gave error

Type error: No overload matches this call.
  Overload 1 of 4, '(value: string | number | Date): Date', gave the following error.
    Argument of type 'Date | null' is not assignable to parameter of type 'string | number | Date'.
      Type 'null' is not assignable to type 'string | number | Date'.
  Overload 2 of 4, '(value: string | number): Date', gave the following error.
    Argument of type 'Date | null' is not assignable to parameter of type 'string | number'.
      Type 'null' is not assignable to type 'string | number'.
  827 |     // Get last swap date
  828 |     const lastSwap = userSwaps.reduce((latest, current) => {
> 829 |       const currentDate = new Date(current.createdAt);
      |                                    ^
  830 |       const latestDate = new Date(latest.createdAt);
  831 |       return currentDate > latestDate ? current : latest;
  832 |     });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for "Swap and Stake" commands

2 participants

Comments