flips
flips copied to clipboard
Pool-Based DEX Swap Standard
https://github.com/onflow/flips/blob/7992e12453be5281fbbee2423e2f579c8306380e/application/20230522-pool-based-dex.md
I don't think there is a need for Capability version of the functions. What is the use case for them?
pub fun swapExactSourceToTargetTokenUsingPath(
sourceToTargetTokenPath: Type[],
sourceVault: @FungibleToken.Vault,
exactTargetAmount: UFix64,
expiry: UFix64,
recipient: Capability<&{FungibleToken.Receiver}>,
remainingSourceTokenRecipient: Capability<&{FungibleToken.Receiver}>
)
Hi @satyamakgec - were we able to make a decision on this yet?