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

Ratings

Only those that count can rate you...

Only counterparts in active trades are able to rate each other. Therefore, counterparts invoke special functions in the Trade contract and they identify the counterpart, not by address, but by trade through the token id.

const txHash = await buyer.invoke(
    txAssetContract, 
    "rate", 
    { 
      tokenId: toUint256WithFelts("0"),
      rating:  toUint256WithFelts("1")
    },
    { maxFee: FEE}
  )

Next is about fund withdrawals.

PreviousDecrease CollateralNextWithdraw Funds

Last updated 2 years ago