20 USDC3 total claimsCompletedon Feb 25by@rpj& 1 otherrecommendationsToken Swap Use Cases🐧@mintcloud·1y·Posted 1 completed bounty·FarcasterCan 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
Roshan PJTop bounty completer@rpj·1y·Completed 2 bountiesBounty completerDirectly, no. If frame button clicks would be able to call smart contracts, then yes.ReplyPay user
ericTop bounty completer@tintin·1y·Completed 1 bountyBounty completerAFAIK 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.ReplyPay user
OxhappyTop bounty completer@triadji·1y·Completed 0 bountiesyes, if it uses the Multi-Blockchain Interoperability system because it will enable cross-blockchain token swaps for increased flexibility.ReplyPay user
Sheikh 🍄Top bounty completer@sheikh·1y·Completed 0 bountiesIdk i am noob in this. Hope you get answer 😅ReplyPay user
Roshan PJTop bounty completer@rpj·1y·Completed 2 bountiesBounty completerSomebody (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.ReplyPay user
Roshan PJTop bounty completer@rpj·1y·Completed 2 bountiesBounty completerYes, that is my understanding!ReplyPay user
Roshan PJTop bounty completer@rpj·1y·Completed 2 bountiesBounty completerBut, 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.ReplyPay user
🐧 Top bounty completer@mintcloud·1yIsn’t it possible to call smart contracts? So are the mint actions we’ve seen actually offchain registrations + airdrops?Reply
🐧 Top bounty completer@mintcloud·1yOh 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 thoughReply
ericTop bounty completer@tintin·1y·Completed 1 bountyBounty completerSince 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.ReplyPay user
ericTop bounty completer@tintin·1y·Completed 1 bountyBounty completerA 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.ReplyPay user
ericTop bounty completer@tintin·1y·Completed 1 bountyBounty completerHope this was helpful apologies for the word dumpReplyPay user
🐧 Top bounty completer@mintcloud·10moLooks like it’s not finally possibile! https://warpcast.com/dwr.eth/0xd54457c2Reply
🐧 Top bounty completer@mintcloud·1ySuper 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/introductionReply
Daniel - BountycasterTop bounty completer@pirosb3·1y·Completed 27 bountiesA bello!!! /italy right awayReplyPay user
OxhappyTop bounty completer@triadji·1y·Completed 0 bountiesI think it's correct ,you can check it https://www.bountycaster.xyz/bounty/0xeb33afea995027cf6e7548fe3d6023473ea0f92fReplyPay user
Bounty BotTop bounty completer@bountybot·1y·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! 🎉ReplyPay user