Skip to content

Conversation

@fassko
Copy link
Collaborator

@fassko fassko commented Oct 20, 2025

No description provided.

@fassko fassko requested a review from dineshpinto as a code owner October 20, 2025 14:55
@fassko fassko self-assigned this Oct 20, 2025

// 1. Defines Uniswap V3 router functions for swaps
interface ISwapRouter {
struct ExactInputSingleParams {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you defining the interfaces here? Don't they have an official package that you can import from?

...

I found this: https://www.npmjs.com/package/@uniswap/v3-periphery?activeTab=code .

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We talked with @jO-Osko that I will add a link to it, but not include it in the starter kits.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then add a :::note field somewhere in the guide, explicitly stating that you have defined the structs here, but that they should use the official library.

@fassko fassko force-pushed the feat/fassets-uniswapv3-swap branch 2 times, most recently from 78970df to 8e99ada Compare October 27, 2025 13:46
await deployAndVerifyContract();

const { deployer, usdt0, fxrp, initialUsdt0Balance, initialFxrpBalance } =
await setupAndInitializeTokens();
Copy link
Collaborator

Choose a reason for hiding this comment

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

setUpAndInitializeTokens


## Required Addresses on Flare Mainnet

- V3 SwapRouter (SparkDEX): [0x8a1E35F5c98C4E85B36B7B253222eE17773b2781](https://flarescan.com/address/0x8a1E35F5c98C4E85B36B7B253222eE17773b2781/contract/14/code).
Copy link
Collaborator

Choose a reason for hiding this comment

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

I've been defaulting to Flare Explorer, not Flarescan.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sadly, it is not verified on Flare Explorer.

@fassko fassko force-pushed the feat/fassets-uniswapv3-swap branch from 8e99ada to 3c750d2 Compare October 28, 2025 10:13
@fassko fassko merged commit f8cff49 into main Oct 28, 2025
14 checks passed
@fassko fassko deleted the feat/fassets-uniswapv3-swap branch October 28, 2025 12:58
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.

4 participants