Build an ft pc

Description

Create post-conditions for fungible token transfers to ensure exact amounts are transferred as expected

Use Cases

  • Securing fungible token transfers with amount validation

  • Protecting users from unexpected token transfers in DeFi protocols

  • Ensuring token swaps happen with expected amounts

Key Concepts

  • .ft() - Takes two parameters: contract address with asset name and token name as defined in the contract

  • The Pc builder for fungible tokens provides a fluent interface for creating post-conditions

Was this helpful?