20 USDC3 total claimsCompletedon Feb 25by@rpj& 1 otherrecommendationsToken Swap Use Cases🐧@mintcloud·7mo·Posted 1 completed bountyCan Frames support use cases that involve a token swap (buy token A with token B)? My 3 favorite ideas in the replies will get 20 USDC each @bountybot8310View in Warpcast
ericTop bounty completer@tintin·7mo·Completed 1 bountyAFAIK not really. The concept of signing within a Frame is in the context of a unique generated key, which is independent on your connected wallet address. Thus it has no funds and can't make approvals / token transfers. However with some additional setup I think it could be possible... cont.Not ConnectedPay user
Roshan PJTop bounty completer@rpj·7mo·Completed 2 bountiesDirectly, no. If frame button clicks would be able to call smart contracts, then yes.Not ConnectedPay user
Sheikh 🍄Top bounty completer@sheikh·7mo·Completed 0 bountiesIdk i am noob in this. Hope you get answer 😅Not ConnectedPay user
Oxhappy 🔮🎩Top bounty completer@triadji·7mo·Completed 0 bountiesyes, if it uses the Multi-Blockchain Interoperability system because it will enable cross-blockchain token swaps for increased flexibility.Not ConnectedPay user
ericTop bounty completer@tintin·7mo·Completed 1 bountyHope this was helpful apologies for the word dumpNot ConnectedPay user
ericTop bounty completer@tintin·7mo·Completed 1 bountySince it can lead to loss of funds depending on how the contracts are written. You can remove some trust in the off chain service by checking that the signer of the message received in the Frame, but at the end of the day you'll still have a centralized off chain entity controlling the swapping contract so not ideal.Not ConnectedPay user
ericTop bounty completer@tintin·7mo·Completed 1 bountyA very simple example would be a permissioned router. You approve this contract from your connected wallet address (so that it can swap for you), and you trust an off chain service (i.e. the frames backend) to trigger the swap to happen. There must be correct permissions on who can "trigger" the swap to happen... cont.Not ConnectedPay user
🐧 Top bounty completer@mintcloud·6moLooks like it’s not finally possibile! https://warpcast.com/dwr.eth/0xd54457c2Original poster
🐧 Top bounty completer@mintcloud·7moSuper helpful, thanks! It seems to me that these permissioned routers do exist, an example of that is 0x API (disclaimer: I work at 0x) The frame backend sends a trade request, 0x API returns a calldata that the wallet signs and sends onchain to perform the swap https://0x.org/docs/0x-swap-api/introductionOriginal poster
Roshan PJTop bounty completer@rpj·7mo·Completed 2 bountiesYes, that is my understanding!Not ConnectedPay user
Roshan PJTop bounty completer@rpj·7mo·Completed 2 bountiesBut, the problem is that no "entity" can withdraw your token for you unless you provide approval to the smart contract, by doing a transaction, which is again not possible with frame button clicks.Not ConnectedPay user
Roshan PJTop bounty completer@rpj·7mo·Completed 2 bountiesSomebody (an entity) should be able to withdraw your token, swap it on the smart contract, get the swapped token and transfer it to your farcaster wallet.Not ConnectedPay user
🐧 Top bounty completer@mintcloud·7moIsn’t it possible to call smart contracts? So are the mint actions we’ve seen actually offchain registrations + airdrops?Original poster
🐧 Top bounty completer@mintcloud·7moOh I was thinking of using something like 0x API to produce the calldata to be called by the wallet. The swap should be handled by that. One would need the allowance set on 0x contracts thoughOriginal poster
Bounty BotTop bounty completer@bountybot·6mo·Completed 3 bountiesYour bounty was marked as complete and users have the completion recorded in their profiles Please send payments promptly. You can pay users directly or export a csv of all addresses at https://bountycaster.xyz/bounty/0xeb33afea995027cf6e7548fe3d6023473ea0f92f Thanks for using Bountycaster! 🎉Not ConnectedPay user
Linda XieTop bounty completer@linda·7mo·Completed 17 bountiesYep you did it right!Not ConnectedPay user
Daniel - BountycasterTop bounty completer@pirosb3·7mo·Completed 25 bountiesA bello!!! /italy right awayNot ConnectedPay user
Oxhappy 🔮🎩 Top bounty completer@triadji·7mo·Completed 0 bountiesI think it's correct ,you can check it https://www.bountycaster.xyz/bounty/0xeb33afea995027cf6e7548fe3d6023473ea0f92fNot ConnectedPay user