Skip to content
CCPEDIAby Unity Nodes
Outreach

Settlement error in description?

2 posts294 views1 likesLast activity Feb 2023

  1. shlegerOP 1

    I think here is an error in description, please look here
    https://digital-asset.github.io/daml-finance/tutorials/getting-started/settlement.html

    Alice and Bob should be exchanged:

    Alice creates a Dvp.Proposal template to propose the exchange of the TOKEN against USD.

      dvpProposalCid <- submit **bob** do
        createCmd DvP.Proposal with
          id = "xccy trade"
          recQuantity = Instrument.qty 10.0 tokenInstrument
          payQuantity = Instrument.qty 1000.0 usdInstrument
          proposer = bob
          counterparty = alice
          routeProviderCid
          settlementFactoryCid
    

    Bob then accepts the proposal, agreeing to the terms of the trade.

      (batchCid, recSettleInstructionCid, paySettleInstructionCid) <- submit **alice** do
        exerciseCmd dvpProposalCid DvP.Accept
    

    Once the proposal is accepted, three contracts are created:

  2. Mate_Varga

    Hi @shleger,

    Thanks for reporting! The digital-asset.github.io pages are no longer the official documentation of Daml Finance as it was release as GA as part of Daml. The new location of the documentation is on the docs.daml.com site: Settlement — Daml SDK 2.5.3 documentation