TradeFlows
  • TradeFlows
    • What is the Core Protocol?
    • Benefits of using TradeFlows
    • Innovations
    • Flows - Programmed Liquidity
    • Dharma - Collaborative Ratings
    • Smart Contracts
  • Guides
    • Getting Started
      • Assets
        • Minting
        • Agreeing
        • Composing
      • Payment Streams
        • Create
        • Pause
      • Escrows
        • Increase Collateral
        • Decrease Collateral
      • Ratings
      • Withdraw Funds
  • Use Cases
    • Web3
      • DAO Management
    • Web2
      • Building & Construction
      • Gig Economy
      • Small Business
  • Links
    • Website
    • Twitter
    • Discord
Powered by GitBook
On this page
  1. Guides
  2. Getting Started
  3. Escrows

Decrease Collateral

It is still the payers money

At any time, the payer can withdraw funds from the escrow. As soon as this happens, the seller sees this decrease of funds and a negotiation can start.

let tokenId = toUint256WithFelts("0")
const amount = toUint256WithFelts((BigInt('500'.replace(/,/g, ''))).toString())

await account0.invoke(
    txEscrowContract, 
    'decrease', 
    { 
        tokenId: tokenId, 
        amount: amount 
    }, 
    { maxFee: FEE}
  )

Full control is essential for the payer, full transparency is essential for the seller. The Core protocol addresses both.

PreviousIncrease CollateralNextRatings

Last updated 2 years ago