horsefacts ๐Ÿš‚ pfp
horsefacts ๐Ÿš‚
@horsefacts.eth
Problem: itโ€™s too hard to build swap/token UIs. Several popular frames use embedded swap widgets that don't connect to the userโ€™s wallet. We're exploring some ideas for "token actions" and seeking feedback from frame devs! https://warpcast.notion.site/DRAFT-Token-Actions-1966a6c0c101800abc99fed1720a73ca?pvs=74
23 replies
17 recasts
73 reactions

Stephan pfp
Stephan
@stephancill
I like it! Would love to be able to specify the amount of token out but I recognize thatโ€™s probably a limitation of the swap API provider Is it possible for a client to specify whether a specific action is implemented or not? Would like to fall back to an in-frame flow in cases where native swap functionality isnโ€™t available
1 reply
0 recast
10 reactions

Daniel Sinclair pfp
Daniel Sinclair
@danielsinclair
MetaMask has a new wallet_swapAsset RPC call that you could use as a fallback to Farcaster Wallet to push users from the Frame SDK into external wallets, rather than requiring the signing bounce-backs for Approval+Swap. The idea is that wallets (whether EOA or SCA) decide the tx flow (i.e. gasless or subsidized) for swaps https://github.com/MetaMask/metamask-improvement-proposals/blob/main/MIPs/mip-4.md
1 reply
0 recast
3 reactions

Jack Dishman pfp
Jack Dishman
@dish
would be huuuge to use the sdk actions to initiate a swap!
0 reply
0 recast
13 reactions

โ€‹woj pfp
โ€‹woj
@woj.eth
"add full range liquidity" would go a long way - find a token - get a list of largest liquidity pools (most likely one) - select it - if you have the right pair asset, add a slider how much you want to add in full range - ape
1 reply
0 recast
4 reactions

Samuel ใƒ„ pfp
Samuel ใƒ„
@samuellhuber.eth
๐Ÿ‘€ From The notion: We support the following nonstandard extensions to [CAIP-19](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-19.md): - `native` in addition to `slip44:<id>` for native tokens (e.g. ETH, SOL, POL, xDAI) - `solana:<numeric chain ID>` in addition to `solana:<genesis hash>` for Solana namespace
0 reply
0 recast
4 reactions

Pichi ๐ŸŸช๐Ÿ–๐Ÿน๐ŸŽฉ ๐Ÿก๐ŸŒธ pfp
Pichi ๐ŸŸช๐Ÿ–๐Ÿน๐ŸŽฉ ๐Ÿก๐ŸŒธ
@pichi
@apex777.eth @deployer You all might want to weigh in on this.
1 reply
0 recast
3 reactions

Sangohan.base.eth ๐ŸŸ  pfp
Sangohan.base.eth ๐ŸŸ 
@sangohan
Personally, I used OnchainKit, and once the userโ€™s wallet was linked to Warpcast, there were no particular issues. However, I havenโ€™t tested it yet with the new integrated wallet on Warpcast Iโ€™ll get back to you with feedback once I do. But overall, the OnchainKit provider was effective when wrapped within the global provider.
0 reply
0 recast
2 reactions

phragg pfp
phragg
@phragg
while we're talking about token actions, should stop at swap? potential for other CTA: Swap, Buy w/ fiat, Send
0 reply
0 recast
2 reactions

Tamrat pfp
Tamrat
@tamrat
o this would be really useful!
0 reply
0 recast
1 reaction

Jasper โšก pfp
Jasper โšก
@jasper
@horsefacts.eth data-wise creating these views shouldn't be too hard https://protocol.zapper.xyz/docs/api/endpoints/onchain-prices
0 reply
0 recast
1 reaction

nezzar.eth pfp
nezzar.eth
@nezzar
I shipped swaps into the /astroblock frame last weekend for convenience for users and glad I didn't spend too much time on it once I saw the Wallet & swaps coming out. I 100% thought this would be something added at the SDK level as well :) One thing that would be neat tho is having some kind of fee split ! Frames would redirect some volume, would be fair to split it somehow https://app.astroblock.xyz/swap
0 reply
0 recast
1 reaction

limone.eth ๐Ÿ‹ pfp
limone.eth ๐Ÿ‹
@limone.eth
"> await sdk.actions.swap({ sellToken, buyToken, sellAmount });" i think would be useful to allow swaps specifying either exactAmountIn or exactAmountOut also, if you allow developers getting a fee on the swap (or part of it) would be great
0 reply
0 recast
1 reaction

Garrett pfp
Garrett
@garrett
@saltorious.eth @natewestern
0 reply
0 recast
1 reaction

pol pfp
pol
@polmaire.eth
This would be awesome tbh @horsefacts.eth ! Any timeline for the Swap SDK? cc @no12
0 reply
0 recast
0 reaction

caso pfp
caso
@0xcaso
I see you chose the best meme out there $choochoo ๐Ÿš‚ ๐Ÿš‚ jokes aside, that thing is so needed and as someone already mention it, I would add the possibility to choose exactAmountOut too
0 reply
0 recast
0 reaction

accountless.eth pfp
accountless.eth
@accountless.eth
@ardaa
0 reply
0 recast
0 reaction

Mirko ๐Ÿ”ต๐ŸŸก .โŒโ—จ-โ—จ pfp
Mirko ๐Ÿ”ต๐ŸŸก .โŒโ—จ-โ—จ
@netnose
Looks very nice! When the action starts from a frame with sdk, how will it go back to the frame after the swap? This is a full screen view, the frame is a sheet view
0 reply
0 recast
0 reaction

Wayne Worth pfp
Wayne Worth
@alongcamewayne
what happens post txn? will users be sent back to the page they were on? or could we send something like a successUrl as a param?
0 reply
0 recast
0 reaction

dylan pfp
dylan
@dylsteck.eth
this would be so sick to use as a frame dev! one small note here is it might be helpful to have some constructor or helper function in the frame sdk that takes in chain id/name and contract address and returns the properly formatted CAIP-19 URI
0 reply
0 recast
0 reaction