diff --git a/packages/orchestration/src/mock-orch-ertp/mock-ertp/mock-ertp.js b/packages/orchestration/src/mock-orch-ertp/mock-ertp/mock-ertp.js index 7076a93b0aa8..34e223318f36 100644 --- a/packages/orchestration/src/mock-orch-ertp/mock-ertp/mock-ertp.js +++ b/packages/orchestration/src/mock-orch-ertp/mock-ertp/mock-ertp.js @@ -269,6 +269,11 @@ export const prepareMockIssuerKit = zone => { const paymentRecoveryFacet = paymentRecoveryFacets.get(payment); paymentRecoveryFacet.unencumber(amount); paymentRecoveryFacet.deletePayment(payment); + // TODO must all burn the same orch denom assets + // so the fullBalance goes down and the unencumbered balance + // eventually stays the same. + // Without this, the unencumbered balance will go up, which is + // completely broken. } }, }, diff --git a/packages/orchestration/src/mock-orch-ertp/notes.txt b/packages/orchestration/src/mock-orch-ertp/notes.txt index fd9025187d6e..539b7a9e5842 100644 --- a/packages/orchestration/src/mock-orch-ertp/notes.txt +++ b/packages/orchestration/src/mock-orch-ertp/notes.txt @@ -33,6 +33,11 @@ ertp reclaim(a), like a successful self.deposit(a) eb -= a fb unchanged +mintTo(d, a), like succeed case of transfer + dub += a + deb unchanged + dfb += a + if orch account can be independently spent from ub can go negative, if fb < eb payments can fail to be deposited