제34장. 계약 생애주기: 기본계약, 담보, 기업행위, 노베이션, 토큰화 증권

확인서·담보 실행·CCP 노베이션과 토큰화 수익권

핵심 키워드: MasterAgreement & TradeConfirmation · CollateralizedObligation · CorporateActionRule · CCPNovation · Tokenized Trust 6-Step Lifecycle
"노베이션이란, 매수자와 매도자 사이의 원래 채무를 소멸시키고, 중앙거래상대방을 매도자에 대한 매수자이자 매수자에 대한 매도자로 대체하여 두 개의 새 계약을 만드는 절차다." — 지급결제제도위원회·국제증권감독자기구, 「중앙거래상대방에 관한 권고」 용어집, 2004년 11월

1. 패턴 34.1 · 기본계약과 개별 확인서 (MasterAgreement)

문제

장외 파생상품과 레포 거래는 준거법, 기한이익 상실 사유, 도산 시 일괄 상계(close-out netting) 같은 조항을 거래마다 다시 협상하지 않습니다. 당사자들은 한 번 기본계약(Master Agreement)을 맺고, 매 거래는 그 기본계약을 참조하는 짧은 개별 확인서(Trade Confirmation)로 기록합니다. 국제스왑파생상품협회(International Swaps and Derivatives Association, ISDA) 기본계약과 글로벌 환매조건부채권 기본계약(Global Master Repurchase Agreement, GMRA)이 이 구조입니다. 원장도 같은 2계층을 표현해야 하고, 신용 사건(Credit Event)이 생기면 신규 확인서 생성을 한 번에 막을 수 있어야 합니다.

계약 설계

양 당사자가 서명한 MasterAgreement를 ACS에 남겨 두고, 비소비 초이스 ProposeConfirmation으로 확인서 제안을 만듭니다. 상대방이 AcceptConfirmation으로 수락하면 양측이 서명한 TradeConfirmation이 생성됩니다. 수락 시점에 기본계약을 다시 fetch해 isActive를 확인하므로, 기본계약을 정지 상태로 바꾸면(isActive = False인 새 계약으로 교체) 그 뒤의 수락은 모두 거절됩니다. 정지 전에 만든 제안도 같은 확인을 거치므로 수락되지 않습니다.

1970년대 벨 연구소 매뉴얼 화풍의 계약 나무 도해: 두 기관의 직인이 찍힌 묵직한 뿌리 원통인 기본계약(Master Agreement)이 땅속에 단단히 박혀 있고, 그 줄기 위의 비소비 밸브에서 수많은 가벼운 개별 거래 확인서(Trade Confirmation) 잎사귀 카드들이 질서정연하게 뻗어 나오는 스팟 일러스트
[FIG 34.1] 2계층 계약(MasterAgreement → TradeConfirmation). 법률·신용 조항은 기본계약에 한 번만 두고, 개별 거래는 비소비 초이스로 확인서를 만든다.
삽화 구성 및 생성 프롬프트 보기 열기 / 닫기
연출 의도: ISDA 및 GMRA 실무의 뿌리-가지(Master-Confirmation) 계층 구조를 단단한 황동 뿌리 기둥과 그로부터 파생되는 정갈한 확인서 카드 잎사귀 나무로 형상화.
Minimalist abstract 1970s Bell Labs systems architecture doodle and vintage Saul Steinberg editorial spot cartoon on empty aged warm-gray newsprint paper. In the center, an architectural mechanical tree: a heavy twin-sealed foundation trunk labeled only by geometric emblems anchors deep at the base (Master Agreement), while crisp lightweight rectangular confirmation cards sprout cleanly along symmetrical branches through non-consuming rotary valves. Dry intellectual wit, 75% negative space, warm off-white newsprint background, coarse off-register gray Zip-A-Tone screen-tone shading, raw dip-pen black ink linework, flat 2D graphic art, zero gradients, zero text, zero letters or words anywhere in the image. --ar 16:9

코드

패턴 34.1 · 기본계약(MasterAgreement)의 비소비 초이스와 개별 확인서(TradeConfirmation) Daml
module Patterns.MasterAndConfirmation where

import Patterns.HoldingStandard (InstrumentKey(..))

data MasterScheduleType = ISDA2002 | GMRA2011
  deriving (Eq, Show)

-- 1계층: 양 기관이 한 번 체결하고 반복 참조하는 기본계약
template MasterAgreement
  with
    masterId       : Text
    scheduleType   : MasterScheduleType
    partyA         : Party
    partyB         : Party
    nettingGroupId : Text
    isActive       : Bool
  where
    signatory partyA, partyB
    ensure masterId /= "" && partyA /= partyB

    -- 기본계약을 소비하지 않고(nonconsuming) 확인서 제안을 반복 생성
    nonconsuming choice ProposeConfirmation : ContractId ConfirmationProposal
      with
        proposer       : Party
        confirmId      : Text
        underlyingInst : InstrumentKey
        notionalAmount : Decimal
        fixedPrice     : Decimal
        maturityTime   : Time
      controller proposer
      do
        assertMsg "MASTER_SUSPENDED" isActive
        assertMsg "UNAUTHORIZED_PROPOSER" (proposer == partyA || proposer == partyB)
        let counterparty = if proposer == partyA then partyB else partyA
        create ConfirmationProposal with
          masterId
          nettingGroupId
          buyer          = proposer
          seller         = counterparty
          confirmId
          underlyingInst
          notionalAmount
          fixedPrice
          maturityTime

template ConfirmationProposal
  with
    masterId       : Text
    nettingGroupId : Text
    buyer          : Party
    seller         : Party
    confirmId      : Text
    underlyingInst : InstrumentKey
    notionalAmount : Decimal
    fixedPrice     : Decimal
    maturityTime   : Time
  where
    signatory buyer
    observer seller
    ensure notionalAmount > 0.0 && fixedPrice > 0.0

    choice AcceptConfirmation : ContractId TradeConfirmation
      with
        masterCid : ContractId MasterAgreement
      controller seller
      do
        master <- fetch masterCid
        assertMsg "MASTER_ID_MISMATCH" (master.masterId == masterId && master.isActive)
        create TradeConfirmation with
          masterId
          nettingGroupId
          buyer
          seller
          confirmId
          underlyingInst
          notionalAmount
          fixedPrice
          maturityTime

-- 2계층: 체결 내역을 담고 청산·결제로 넘어가는 개별 확인서
template TradeConfirmation
  with
    masterId       : Text
    nettingGroupId : Text
    buyer          : Party
    seller         : Party
    confirmId      : Text
    underlyingInst : InstrumentKey
    notionalAmount : Decimal
    fixedPrice     : Decimal
    maturityTime   : Time
  where
    signatory buyer, seller

2. 패턴 34.2 · 의무에 묶인 담보 (CollateralizedObligation)

문제

담보 대출과 장외 파생상품 증거금 거래에서 차주(Borrower)와 대주(Lender)의 위험은 반대 방향입니다. 차주는 원리금을 갚았는데 대주가 국채 담보를 돌려주지 않을 위험을, 대주는 차주가 만기에 상환하지 않고 담보 이전 서명도 거부할 위험을 집니다. 상환과 담보 반환은 한 트랜잭션이어야 하고, 연체 시 담보 실행에는 차주의 새 서명이 필요 없어야 합니다.

당사자와 권한

대출 개시 시 차주의 국채는 발행기관·수탁기관·차주·대주가 모두 서명한 PledgedCollateral로 바뀝니다. 차주와 대주는 CollateralizedObligation에 함께 서명합니다. 이 서명이 나중에 쓰입니다. 대주가 ForecloseCollateral을 행사하면 본문 권한은 \(\{\mathrm{borrower}, \mathrm{lender}\}\)이므로, 두 사람을 controller로 요구하는 SeizeToLender가 차주의 새 서명 없이 인가됩니다.

계약 설계

제31장의 잠금과 제33장의 원자적 교환을 결합합니다. 만기 이전 상환(RepayAndUnlock)은 원리금 현금 이전과 담보 반환을 한 트랜잭션에서 실행합니다. 만기 시각(maturityTime)이 지나도록 상환이 없으면 대주가 단독으로 담보를 실행합니다(ForecloseCollateral). 두 경로는 원장 시간 기준으로 겹치지 않습니다(now <= maturityTime와 now > maturityTime).

1970년대 벨 연구소 매뉴얼 스타일의 이중 경로 담보 금고 기계: 중앙 유리 금고 안에 국채 증서가 잠겨 있고, 만기 시계 이전에는 차주의 현금 상환 투입구가 열려 현금이 대주에게 넘어감과 동시에 담보가 차주에게 반환되며, 시계 바늘이 만기를 넘기면 대주의 담보 실행 레버가 잠금 해제되는 스팟 일러스트
[FIG 34.2] 의무에 묶인 담보(CollateralizedObligation). 정상 상환 시에는 현금 상환과 담보 반환이 한 트랜잭션에서 일어나고, 기한이익 상실 시에는 차주의 추가 서명 없이 담보가 실행된다.
삽화 구성 및 생성 프롬프트 보기 열기 / 닫기
연출 의도: 기관 국채 담보 대출 및 파생 증거금 정산의 양대 분기(정상 상환 동시 반환 vs 기한 경과 담보권 실행)를 시계 연동식 이중 레버 금고 메커니즘으로 시각화.
Minimalist abstract 1970s Bell Labs mechanical manual doodle and vintage Saul Steinberg editorial spot cartoon on empty aged warm-gray newsprint paper. In the center, a transparent cylindrical collateral vault holding a crisp bond certificate with two precision mechanical levers governed by a maturity clock dial: Lever 1 couples a cash repayment chute directly to the borrower's return tray in one linked motion; Lever 2 unlocks automatically once the clock hand passes the maturity mark, routing the bond smoothly to the lender's tray. Dry intellectual wit, 75% negative space, warm off-white newsprint background, coarse off-register gray Zip-A-Tone screen-tone shading, raw dip-pen black ink linework, flat 2D graphic art, zero gradients, zero text, zero letters or words anywhere in the image. --ar 16:9

코드

패턴 34.2 · 담보 계약(PledgedCollateral)과 상환·실행 경로를 가진 의무 계약 Daml
module Patterns.CollateralizedLoan where

import Patterns.HoldingStandard
  ( InstrumentKey(..), AccountKey(..), Holding, FungibleHolding(..), Transfer(..) )

-- 담보 제공 시 원래의 FungibleHolding을 소비하고 생성되는 담보 계약 (차주·대주 모두 서명)
template PledgedCollateral
  with
    loanId          : Text
    instrument      : InstrumentKey
    borrowerAccount : AccountKey
    lenderAccount   : AccountKey
    collateralUnits : Decimal
  where
    signatory instrument.issuer, borrowerAccount.custodian, borrowerAccount.owner, lenderAccount.owner
    ensure collateralUnits > 0.0 && borrowerAccount.custodian == lenderAccount.custodian

    -- 정상 상환 시 차주 계좌로 원상 복구
    choice ReturnToBorrower : ContractId Holding
      controller borrowerAccount.owner, lenderAccount.owner
      do
        unlocked <- create FungibleHolding with
          instrument
          account   = borrowerAccount
          amount    = collateralUnits
          observers = []
        pure (toInterfaceContractId unlocked)

    -- 만기 미상환 시 대주 계좌로 담보권 귀속 실행
    choice SeizeToLender : ContractId Holding
      controller borrowerAccount.owner, lenderAccount.owner
      do
        seized <- create FungibleHolding with
          instrument
          account   = lenderAccount
          amount    = collateralUnits
          observers = []
        pure (toInterfaceContractId seized)

-- 차주의 상환 의무와 담보 계약을 하나로 묶은 생애주기 계약
template CollateralizedObligation
  with
    loanId            : Text
    borrower          : Party
    lender            : Party
    lenderCashAccount : AccountKey
    repaymentCashInst : InstrumentKey
    repaymentAmount   : Decimal
    pledgedCid        : ContractId PledgedCollateral
    maturityTime      : Time
  where
    signatory borrower, lender
    ensure repaymentAmount > 0.0 && lenderCashAccount.owner == lender

    -- 경로 1: 만기 이내 원리금 상환과 담보 반환을 한 트랜잭션에서 실행
    choice RepayAndUnlock : (ContractId Holding, ContractId Holding)
      with
        repaymentCashCid : ContractId Holding
      controller borrower
      do
        now <- getTime
        assertMsg "LOAN_ALREADY_PAST_MATURITY" (now <= maturityTime)
        cashH <- fetch repaymentCashCid
        let cv = view cashH
        assertMsg "REPAY_INST_MISMATCH" (cv.instrument == repaymentCashInst)
        assertMsg "REPAY_AMOUNT_MISMATCH" (cv.amount == repaymentAmount)
        assertMsg "REPAY_CASH_LOCKED" (not cv.isLocked)

        paidCashCid     <- exercise repaymentCashCid (Transfer lenderCashAccount)
        returnedBondCid <- exercise pledgedCid ReturnToBorrower
        pure (paidCashCid, returnedBondCid)

    -- 경로 2: 만기 경과 미상환 시 대주가 단독으로 담보 실행 (차주 권한은 이 계약의 서명에서 온다)
    choice ForecloseCollateral : ContractId Holding
      controller lender
      do
        now <- getTime
        assertMsg "MATURITY_NOT_YET_PASSED" (now > maturityTime)
        exercise pledgedCid SeizeToLender

상태 전이와 실패 양상

RepayAndUnlock은 의무 계약, 담보 계약, 차주의 현금 보유분을 아카이브하고 대주의 현금 보유분과 차주의 국채 보유분을 생성합니다. ForecloseCollateral은 의무 계약과 담보 계약을 아카이브하고 대주의 국채 보유분을 생성합니다. PledgedCollateral은 네 당사자의 권한이 필요하므로 대출 개시 절차(제28장의 제안·수락)에서 만들어야 하고, ensure가 차주·대주 계좌의 수탁기관이 같을 것을 요구합니다. 담보 가치가 하락해도 이 코드는 추가 증거금(margin call)을 요구하지 않습니다. 증거금 재평가는 별도의 주기적 초이스로 두어야 합니다.

3. 패턴 34.3 · 기업행위: 배당, 액면분할, 조기상환 (CorporateActionRule)

문제

채권은 이표(coupon)를 지급하고, 주식은 1대5 액면분할(stock split)을 하며, 발행사는 콜옵션부 사채를 조기상환(early redemption call)합니다. 이 기업행위(Corporate Action)는 모든 보유자에게 한 번씩만 적용되어야 합니다. 같은 보유분으로 배당을 두 번 받는 이중 청구(double claim)를 막아야 합니다.

계약 설계

제32장의 InstrumentKey에 version 필드를 둔 이유가 여기에 있습니다. 기업행위를 적용하면 기존 버전("v1") 보유분을 소비하고 다음 버전("v2", 배당락·분할 후) 보유분과 현금 수령 청구권(CashEntitlement)을 한 트랜잭션에서 생성합니다. Daml Finance도 상품 키에 버전을 두고 생애주기 이벤트마다 새 버전을 만드는 방식을 씁니다.

버전 전이(v1 → v2)가 이중 청구를 막는 이유: 보유분의 버전을 그대로 두고 비소비 초이스로 배당을 청구하게 하면, 누가 이미 받았는지 기록할 별도 장부나 계약 키 부재 조회가 필요합니다. "v1" 보유분을 소비해 "v2" 보유분과 청구권으로 바꾸면, 같은 "v1" 보유분으로 두 번 청구하는 트랜잭션은 이미 아카이브된 계약을 참조하므로 거절됩니다. 계약 키에 의존하지 않으므로 멀티 동기화기 환경에서도 같은 방식이 통합니다.

코드

패턴 34.3 · 이표·배당, 액면분할, 조기상환 콜을 처리하는 기업행위 규칙 (CorporateActionRule) Daml
module Patterns.CorporateActions where

import Patterns.HoldingStandard
  ( InstrumentKey(..), Holding, FungibleHolding(..) )

data ActionSpec
  = CouponDistribution Decimal   -- 좌당 현금 배당·이표 지급액 (v1 -> v2 + 현금 청구권)
  | StockSplit Decimal           -- 액면분할 배수, 예: 5.0 (v1 -> 5배 수량의 v2)
  | EarlyRedemptionCall Decimal  -- 조기상환 콜 단가 (v1 소각 -> 원리금 상환 청구권)
  deriving (Eq, Show)

-- 이표·배당금 또는 조기상환 원리금에 대한 발행사의 지급 확정 기록
template CashEntitlement
  with
    issuer       : Party
    beneficiary  : Party
    currencyCode : Text
    cashAmount   : Decimal
    reason       : Text
  where
    signatory issuer, beneficiary
    ensure cashAmount > 0.0

-- 발행사와 수탁기관이 공시하는 기업행위 규칙 계약
template CorporateActionRule
  with
    sourceInstrument : InstrumentKey
    nextVersion      : Text
    custodian        : Party
    actionSpec       : ActionSpec
    payoutCurrency   : Text
    effectiveAfter   : Time
    observers        : [Party]
  where
    signatory sourceInstrument.issuer, custodian
    observer observers

    nonconsuming choice ApplyLifecycle : (Optional (ContractId Holding), Optional (ContractId CashEntitlement))
      with
        holder     : Party
        holdingCid : ContractId FungibleHolding
      controller holder
      do
        now <- getTime
        assertMsg "ACTION_NOT_EFFECTIVE_YET" (now >= effectiveAfter)
        h <- fetch holdingCid
        assertMsg "WRONG_SOURCE_INSTRUMENT" (h.instrument == sourceInstrument)
        assertMsg "NOT_HOLDING_OWNER" (h.account.owner == holder)
        assertMsg "CUSTODIAN_MISMATCH" (h.account.custodian == custodian)
        archive holdingCid

        let evolvedInst = sourceInstrument with version = nextVersion
        case actionSpec of
          CouponDistribution ratePerUnit -> do
            nextH <- create h with instrument = evolvedInst
            claim <- create CashEntitlement with
              issuer       = sourceInstrument.issuer
              beneficiary  = holder
              currencyCode = payoutCurrency
              cashAmount   = h.amount * ratePerUnit
              reason       = "COUPON_OR_DIVIDEND"
            pure (Some (toInterfaceContractId nextH), Some claim)

          StockSplit ratio -> do
            assertMsg "INVALID_SPLIT_RATIO" (ratio > 0.0)
            splitH <- create h with
              instrument = evolvedInst
              amount     = h.amount * ratio
            pure (Some (toInterfaceContractId splitH), None)

          EarlyRedemptionCall callPrice -> do
            redeemClaim <- create CashEntitlement with
              issuer       = sourceInstrument.issuer
              beneficiary  = holder
              currencyCode = payoutCurrency
              cashAmount   = h.amount * callPrice
              reason       = "EARLY_REDEMPTION_CALL"
            pure (None, Some redeemClaim)

상태 전이와 실패 양상

ApplyLifecycle은 비소비 초이스이므로 규칙 계약은 남고, 보유자마다 한 번씩 행사합니다. 권한 검산: 본문 권한 \(\{\mathrm{issuer}, \mathrm{custodian}, \mathrm{holder}\}\)는 "v1" 보유분의 아카이브(서명자 issuer·custodian·owner)와 "v2" 보유분·CashEntitlement 생성을 모두 덮습니다. 보유자가 행사하지 않으면 "v1" 보유분이 남아 기업행위가 반영되지 않은 채 거래될 수 있습니다. 결제 패턴이 InstrumentKey 전체(버전 포함)를 대조하므로 "v1"은 "v2"를 기대하는 DvP에서 거절됩니다. 보유자 대신 수탁기관이 일괄 적용하게 하려면 controller를 custodian으로 바꾸고 보유자 수만큼 트랜잭션을 나누어 제출합니다.

4. 패턴 34.4 · 중앙청산소 노베이션과 토큰화 신탁 수익권

문제

두 가지 조합이 남았습니다. Part A는 두 증권사(A ↔ B) 사이의 양자 확인서를 소멸시키고 중앙청산소(Central Counterparty, CCP)가 사이에 들어가 A ↔ CCP와 CCP ↔ B 두 청산 계약으로 바꾸는 노베이션(novation, 경개)입니다. 구채무 소멸과 두 신채무 성립 사이에 어느 쪽만 존재하는 순간이 있으면 안 됩니다. Part B는 제23장 「토큰화 신탁·펀드 수익권과 캡테이블 정합성 — 항공기 엔진 리스 신탁 사례」에서 다룬 토큰화 신탁 수익권의 발행부터 상환까지를 제27~34장의 패턴만으로 조립하는 6단계 과정입니다. 발행 총량이 상한을 넘지 않고, 투자자별 청약 한도를 지켜야 합니다.

1970년대 벨 연구소 매뉴얼 스타일의 종합 아키텍처 도해: 왼쪽에서는 당사자 A와 B를 직접 잇던 팽팽한 줄이 중앙청산소(CCP) 육각 프리즘을 통과하며 A-CCP와 CCP-B 두 가닥의 정돈된 선으로 치환되고, 오른쪽에서는 발행·적격면허·계좌위임·청약잠금·DvP유통·배당상환 6개의 기어가 맞물려 돌아가는 스팟 일러스트
[FIG 34.3] 중앙청산소 노베이션과 토큰화 신탁 수익권의 6단계 생애주기. 양자 계약을 청산 계약 쌍으로 원자적으로 바꾸고(좌), 발행부터 상환·소각까지 같은 원장 모델로 처리한다(우).
삽화 구성 및 생성 프롬프트 보기 열기 / 닫기
연출 의도: Part A의 CCP 노베이션(원계약 소멸과 두 청산 계약 생성의 동시성)과 Part B의 토큰증권 6단계 풀세트 조립을 광학 프리즘 분기와 6연동 시계 기어라는 한 폭의 마스터 도면으로 집약.
Minimalist abstract 1970s Bell Labs master blueprint doodle and vintage Saul Steinberg editorial spot cartoon on empty aged warm-gray newsprint paper. Split panoramic machine: on the left, a direct bilateral tension line between two nodes enters a geometric hexagonal clearing prism (CCP) and cleanly refracts into two balanced hub-and-spoke lines while keeping net balance scales identical; on the right, six sequential interlocking clockwork gears carry a certificate smoothly from minting press, license stamp, agency lever, escrow lock, revolving swap door, to final coupon and archive slot. Dry intellectual wit, 75% negative space, warm off-white newsprint background, coarse off-register gray Zip-A-Tone screen-tone shading, raw dip-pen black ink linework, flat 2D graphic art, zero gradients, zero text, zero letters or words anywhere in the image. --ar 16:9
∀ p ∈ 𝒫, NetPos_before(p) = NetPos_after(p) ∧ NetPos_CCP = ∑_{p ∈ 𝒫} NetPos_after(p) = 0

양자 간 총 명목 노출액 G_gross를 CCP 노베이션과 다자간 차감(multilateral netting)으로 상계하면 실제 순결제 의무액 N_net과 차감 효율 η는 다음과 같다.

N_net = ∑_{p ∈ 𝒫} max(0, NetPos_after(p)), η = 1 - (N_net / G_gross)

예시 수치(단위: USD 백만): 청산회원 \(A, B, C, D\) 사이에 하루 동안 쌓인 같은 종목의 양자 거래 총 명목 노출액이 \(G_{\mathrm{gross}} = 120\)이고, 각 사의 매수(+)·매도(−) 순포지션이 \(\mathrm{NetPos}(A) = +11\), \(\mathrm{NetPos}(B) = +7\), \(\mathrm{NetPos}(C) = -10\), \(\mathrm{NetPos}(D) = -8\)이라 하자.

  • 노베이션 후에도 각 회원의 순포지션은 변하지 않고, CCP의 순포지션은 \(11 + 7 - 10 - 8 = 0\)으로 방향성 위험이 없다.
  • 다자간 차감 후 실제 결제할 순의무액은 양의 포지션 합계 \(N_{\mathrm{net}} = 11 + 7 = 18\)이고, 차감 효율은 \(\eta = 1 - 18 / 120 = 0.85\), 즉 결제 유동성 수요가 85% 줄어든다.
[INVARIANT 34.1] 중앙청산소 노베이션의 순포지션 불변성과 다자간 차감 효율.

관할별 제도 배경은 제23장에 두고, 여기서는 관할과 무관한 6단계 조립 순서를 정리합니다.

  1. 1단계 (신탁 등록부와 수익권 Instrument 등록, 제28·32장): 위탁자와 수탁자(trustee)가 발행 총량 상한을 둔 신탁을 설정하고 수익권 InstrumentKey (trustee, symbol, "v1")을 등록합니다.
  2. 2단계 (투자자 적격 확인과 청약 한도, 제30장): 투자자 유형(일반·적격·전문)에 따른 연간 한도를 담은 InvestorQualification을 부여합니다.
  3. 3단계 (계좌관리기관 위임, 제30·32장): 투자자가 계좌관리기관(accountManager, 투자자 계좌의 수탁기관)에 청약 대리권(AccountManagerDelegation)을 줍니다.
  4. 4단계 (청약과 발행 총량 이내 배정, 제28·31·32장): 계좌관리기관이 위임을 통해 청약서를 만들고, 수탁자가 mintedUnits + requestedUnits <= maxTotalUnits 아래에서 대금 이전과 수익권 발행을 한 트랜잭션으로 실행합니다.
  5. 5단계 (장외 유통, 제33장): 발행된 수익권은 FungibleHolding이므로 제33장의 AtomicDvPProposal로 코드 수정 없이 예금 토큰과 교환됩니다.
  6. 6단계 (수익 분배와 만기 상환·소각, 패턴 34.3·32.4): 기초자산(예: 항공기 엔진 리스료)의 현금흐름이 생기면 CorporateActionRule로 분배 청구권을 만들고, 신탁 종료 시 매각 대금 지급과 함께 수익권 전량을 소각(Burn)합니다.

당사자와 권한

생애주기 단계 / 계약 서명자 (signatory) 행위자 (controller) 조합한 패턴 (제27~33장)
34.1 MasterAgreement partyA, partyB 양 당사자 (nonconsuming ProposeConfirmation) 제28장 제안-수락 + 장기 마스터에서 단기 개별 확인서 파생
34.2 CollateralizedObligation borrower, lender borrower(상환 해지) / lender(기한 후 담보 실행) 제31장 잠금 + 제27장 원장 시간 창(maturityTime) 분기
34.3 CorporateActionRule issuer, custodian 보유자 owner (배당 청구·버전 전환) 제32장 InstrumentKey 버전 롤오버(v1 → v2) + 보유분 갱신
34.4A CCPNovationRequest ccp, buyer (수락 시 seller 합류) seller (CompleteNovation) 제30장 청산회원 자격 조회 + 원계약 아카이브와 ClearedTrade 2건 생성을 한 트랜잭션에서
34.4B StoTrustIssuanceDesk trustee, accountManager (청약서는 투자자·계좌관리기관) accountManager (위임 청약) / trustee (배정) / 투자자 (T+0 DvP) 자격 증명(30장) + 위임(30장) + 발행 한도(32장) + 원자적 결제(33장)

코드

패턴 34.4A · [Part A] 중앙청산소 원자적 노베이션 (CCPNovation) Daml
module Patterns.CCPNovation where

import Patterns.HoldingStandard (InstrumentKey(..))
import Patterns.MasterAndConfirmation (TradeConfirmation(..))

-- 제30장 자격 증명 패턴: 청산회원 자격
template CCPMembership
  with
    ccp      : Party
    member   : Party
    isActive : Bool
  where
    signatory ccp
    observer member

-- 노베이션 결과 생성되는 중앙청산소 대면 청산 계약
template ClearedTrade
  with
    ccp            : Party
    confirmId      : Text
    buyer          : Party
    seller         : Party
    underlyingInst : InstrumentKey
    notionalAmount : Decimal
    fixedPrice     : Decimal
  where
    signatory ccp, buyer, seller

-- 원계약(A <-> B)을 소멸시키고 (A <-> CCP), (CCP <-> B) 쌍을 동시 생성
template CCPNovationRequest
  with
    ccp           : Party
    bilateralCid  : ContractId TradeConfirmation
    buyer         : Party
    seller        : Party
  where
    signatory ccp, buyer
    observer seller

    choice CompleteNovation : (ContractId ClearedTrade, ContractId ClearedTrade)
      with
        buyerMemCid  : ContractId CCPMembership
        sellerMemCid : ContractId CCPMembership
      controller seller
      do
        bMem  <- fetch buyerMemCid
        sMem  <- fetch sellerMemCid
        trade <- fetch bilateralCid
        assertMsg "INVALID_BUYER_MEMBER" (bMem.ccp == ccp && bMem.member == buyer && bMem.isActive)
        assertMsg "INVALID_SELLER_MEMBER" (sMem.ccp == ccp && sMem.member == seller && sMem.isActive)
        assertMsg "PARTIES_MISMATCH" (trade.buyer == buyer && trade.seller == seller)

        -- 구채무 소멸과 신채무 2건 성립을 한 트랜잭션에서 실행
        archive bilateralCid
        legBuyerToCcp <- create ClearedTrade with
          ccp
          confirmId      = trade.confirmId <> "-LEG-B"
          buyer          = trade.buyer
          seller         = ccp
          underlyingInst = trade.underlyingInst
          notionalAmount = trade.notionalAmount
          fixedPrice     = trade.fixedPrice
        legCcpToSeller <- create ClearedTrade with
          ccp
          confirmId      = trade.confirmId <> "-LEG-S"
          buyer          = ccp
          seller         = trade.seller
          underlyingInst = trade.underlyingInst
          notionalAmount = trade.notionalAmount
          fixedPrice     = trade.fixedPrice
        pure (legBuyerToCcp, legCcpToSeller)
패턴 34.4B · [Part B] 토큰화 신탁 수익권 발행 데스크 (TokenizedTrustLifecycle) Daml
module Patterns.TokenizedTrustLifecycle where

import Patterns.HoldingStandard
  ( InstrumentKey(..), AccountKey(..), Holding, FungibleHolding(..), Transfer(..) )

-- 2단계: 투자자 적격 등급과 연간 청약 한도 (제30장 패턴)
template InvestorQualification
  with
    accountManager : Party
    investor       : Party
    annualLimitUsd : Decimal
  where
    signatory accountManager
    observer investor
    ensure annualLimitUsd > 0.0

-- 3단계: 투자자가 계좌관리기관에 주는 청약 대리 위임 (제30장 패턴)
-- 계좌관리기관은 투자자 계좌의 수탁기관이기도 하다
template AccountManagerDelegation
  with
    investorAccount : AccountKey
    accountManager  : Party
  where
    signatory investorAccount.owner
    observer accountManager
    ensure investorAccount.custodian == accountManager

    -- 위임 계약의 서명(investor) + controller(accountManager)로 청약서를 만든다
    nonconsuming choice SubmitSubscription : ContractId StoSubscriptionOffer
      with
        trustee         : Party
        stoInstrument   : InstrumentKey
        requestedUnits  : Decimal
        unitPriceUsd    : Decimal
        paymentCashInst : InstrumentKey
        paymentCashCid  : ContractId Holding
      controller accountManager
      do
        create StoSubscriptionOffer with
          trustee; investorAccount; stoInstrument; requestedUnits
          unitPriceUsd; paymentCashInst; paymentCashCid

-- 4단계: 공모 청약서 (투자자와 계좌관리기관이 서명)
template StoSubscriptionOffer
  with
    trustee         : Party
    investorAccount : AccountKey
    stoInstrument   : InstrumentKey
    requestedUnits  : Decimal
    unitPriceUsd    : Decimal
    paymentCashInst : InstrumentKey
    paymentCashCid  : ContractId Holding
  where
    signatory investorAccount.owner, investorAccount.custodian
    observer trustee
    ensure requestedUnits > 0.0 && unitPriceUsd > 0.0

    -- 본문 권한 {investor, custodian, trustee}: 대금 이전과 수익권 발행을 한 트랜잭션에서
    choice SettleSubscription : (ContractId Holding, ContractId Holding)
      with
        trustCashAcct : AccountKey
      controller trustee
      do
        cash <- fetch paymentCashCid
        let cv        = view cash
        let totalCost = requestedUnits * unitPriceUsd
        assertMsg "CASH_MISMATCH"
          (cv.account.owner == investorAccount.owner
            && cv.instrument == paymentCashInst
            && cv.amount == totalCost
            && not cv.isLocked)
        settledCashCid <- exercise paymentCashCid (Transfer trustCashAcct)
        unitCid <- create FungibleHolding with
          instrument = stoInstrument
          account    = investorAccount
          amount     = requestedUnits
          observers  = []
        pure (settledCashCid, toInterfaceContractId unitCid)

-- 1·4·6단계: 발행 총량 상한을 지키는 신탁 수익권 발행 데스크
template StoTrustIssuanceDesk
  with
    trustee         : Party
    accountManager  : Party
    trustCashAcct   : AccountKey
    stoInstrument   : InstrumentKey
    maxTotalUnits   : Decimal
    mintedUnits     : Decimal
  where
    signatory trustee, accountManager
    ensure maxTotalUnits > 0.0 && mintedUnits >= 0.0 && mintedUnits <= maxTotalUnits
      && stoInstrument.issuer == trustee && trustCashAcct.owner == trustee

    -- 한도 검사 후 청약서의 SettleSubscription을 행사하고 데스크를 재생성
    -- 발행된 FungibleHolding은 5단계(33.1 AtomicDvP)와 6단계(34.3 배당·상환)에 그대로 쓰인다
    choice AllocateStoSubscription : (ContractId StoTrustIssuanceDesk, ContractId Holding, ContractId Holding)
      with
        subCid  : ContractId StoSubscriptionOffer
        qualCid : ContractId InvestorQualification
      controller trustee
      do
        sub  <- fetch subCid
        qual <- fetch qualCid
        let totalCost = sub.requestedUnits * sub.unitPriceUsd

        assertMsg "SUB_DESK_MISMATCH"
          (sub.trustee == trustee
            && sub.stoInstrument == stoInstrument
            && sub.investorAccount.custodian == accountManager)
        assertMsg "QUAL_INVESTOR_MISMATCH"
          (qual.accountManager == accountManager && qual.investor == sub.investorAccount.owner)
        assertMsg "ANNUAL_LIMIT_EXCEEDED" (totalCost <= qual.annualLimitUsd)
        assertMsg "TOTAL_CAP_EXCEEDED" (mintedUnits + sub.requestedUnits <= maxTotalUnits)

        (settledCashCid, unitCid) <- exercise subCid (SettleSubscription trustCashAcct)
        nextDeskCid <- create this with mintedUnits = mintedUnits + sub.requestedUnits
        pure (nextDeskCid, unitCid, settledCashCid)

상태 전이와 실패 양상

노베이션. CompleteNovation은 요청서와 양자 확인서를 아카이브하고 ClearedTrade 두 건을 생성합니다. 권한 검산: 본문 권한 \(\{\mathrm{ccp}, \mathrm{buyer}, \mathrm{seller}\}\)는 확인서의 아카이브(서명자 buyer·seller)와 두 청산 계약의 생성(서명자 ccp와 각 회원)을 덮습니다. 커맨드를 해석하는 매도인의 참여자 노드는 매수인의 CCPMembership을 볼 수 없으므로(observer는 회원 본인뿐), CCP가 그 계약을 명시적 공개로 넘겨야 합니다. 수익권 배정. 위임 계약의 서명(투자자)과 controller(계좌관리기관)로 청약서가 투자자·계좌관리기관 공동 서명이 되고, 수탁자가 청약서의 SettleSubscription을 행사할 때 본문 권한이 \(\{\mathrm{investor}, \mathrm{custodian}, \mathrm{trustee}\}\)가 되어 투자자 현금의 Transfer와 수익권 생성이 인가됩니다. 수탁자의 노드는 InvestorQualification과 투자자의 현금 보유분의 이해관계자가 아니므로 두 계약을 명시적 공개로 받아야 합니다.

여러 계좌관리기관이 각자 청약을 받아 배정할 때 발행 총량 상한을 1단위라도 넘으려 하면 어디서 막힙니까?

데스크 불변식

StoTrustIssuanceDesk는 배정마다 소비되고 재생성되는 상태 기계이고, ensure mintedUnits <= maxTotalUnits와 assertMsg "TOTAL_CAP_EXCEEDED"로 상한을 두 번 검사합니다. 청약이 초과 접수되어도 상한을 넘는 배정 트랜잭션은 거절됩니다. 두 배정이 같은 데스크 계약을 동시에 소비하려 하면 먼저 순서가 정해진 쪽만 커밋되고 다른 쪽은 LOCAL_VERDICT_LOCKED_CONTRACTS 등으로 거절되므로, 배정은 데스크 단위로 직렬화됩니다. 상한은 데스크 계약 하나의 mintedUnits에 걸립니다. 데스크는 계좌관리기관마다 따로 만들어지므로, 수탁자가 maxTotalUnits를 데스크별로 나누어 배정해야 발행 총량 전체가 상한 안에 머뭅니다.

누적 한도

이 코드의 ANNUAL_LIMIT_EXCEEDED는 한 건의 청약 금액만 검사합니다. 연간 누적 한도를 지키려면 패턴 30.4처럼 InvestorQualification을 소비하고 남은 한도를 기록한 새 계약을 만들어야 합니다.

유통·기업행위 연결

배정으로 투자자 계좌에 들어온 수익권은 제32장의 FungibleHolding이므로, 별도 어댑터 없이 제33장의 AtomicDvPProposal 장외 유통과 패턴 34.3의 CorporateActionRule(리스 수익 분배·만기 상환)에 그대로 쓰입니다.

5. 변형과 조합, 규제 대응

변형과 조합

이 장의 네 패턴은 제27~33장의 패턴을 조합한 것입니다. 기본계약은 제28장의 제안·수락, 담보는 제31장의 잠금과 제33장의 원자적 교환, 기업행위는 제32장의 버전 있는 InstrumentKey, 노베이션과 수익권 배정은 제30장의 자격 증명과 위임을 씁니다. 수익권 데스크에 제23장의 캡테이블 정합성 불변식(등록부 합계와 보유분 합계의 일치)을 함께 검사하면 발행·소각 경로 전체에서 총량을 대사할 수 있습니다.

규제 대응

경개, 중앙청산, 토큰화 증권의 일반 원칙: 경개(novation)는 대부분의 법체계에서 구채무를 소멸시키고 그에 갈음하는 신채무를 성립시키는 합의로 다루어집니다. 중앙청산소는 PFMI와 각 관할의 청산 규제(EU는 EMIR) 아래 노베이션 또는 공개청약 방식으로 거래 상대방이 됩니다. 분산원장 기반 증권 발행·결제에는 EU DLT 파일럿 제도(Regulation (EU) 2022/858)처럼 발행 총량과 장부의 일치, 투자자 보호 요건이 적용됩니다. 신탁 수익권의 구체적 법적 성격과 투자자 한도는 관할마다 다르므로 해당 관할의 규정을 확인해야 합니다.

CompleteNovation 안에서 archive bilateralCid와 두 ClearedTrade 생성은 한 트랜잭션이므로 구채무만 소멸했거나 신채무만 성립한 상태가 원장에 존재하지 않습니다. StoTrustIssuanceDesk와 CorporateActionRule은 발행 총량 상한과 권리 행사의 1회성을 계약 수준에서 검사합니다.

이 장에서 남는 것

  1. 기본계약과 확인서의 2계층. MasterAgreement를 한 번 체결해 남겨 두고 비소비 초이스(ProposeConfirmation)로 개별 확인서를 만들면, 신용·상계 조건을 공유하면서 신용 사건 시 신규 거래를 한 번에 막을 수 있다.
  2. 의무에 묶인 담보의 대칭적 보호. CollateralizedObligation은 만기 내 상환 시 현금 이전과 담보 반환을 원자적으로 결합하고, 만기 경과 시에는 개시 때 받아 둔 차주의 서명으로 대주의 담보 실행을 인가한다.
  3. 버전 전이 기반 기업행위. CorporateActionRule이 "v1" 보유분을 소비해 "v2" 보유분과 CashEntitlement로 바꾸므로, 계약 키 없이도 이중 청구가 막히고 배당·액면분할·조기상환을 같은 방식으로 처리한다.
  4. CCP 노베이션과 토큰화 신탁 수익권 6단계. 원계약 소멸과 청산 계약 쌍 생성을 한 초이스로 묶어 순포지션을 보존하고(\(\mathrm{NetPos}_{\mathrm{before}} = \mathrm{NetPos}_{\mathrm{after}}\)), 제27~33장의 패턴을 조합해 토큰화 신탁 수익권의 발행·유통·분배·상환을 구성한다. 권한은 위임 계약과 청약서의 서명을 거쳐 흘러야 한다.