Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Settlement Pledge Allocation - Does not lock HoldingForum ↗

Settlement Pledge Allocation - Does not lock Holding

App Development2 posts247 views6 likesLast activity Feb 2023
JV
jvelasco.intellecteuOP
Feb 2023

Hi,

I was wondering why not the Instruction implementation locks the holding pledged.
To me it would make sense to commit the holding to the flow by locking it.

Thanks!
Jose

JO
Johan_Sjodin
Feb 2023

Hi @jvelasco.intellecteu ,

I agree that making use of locking would be beneficial. This would prevent accidental usage of an already allocated holding (in another workflow).

However, it could be argued that what’s truly needed is not “locking,” but rather a method of “earmarking” the holding as already allocated. The sender still has the ability to reallocate or cancel the allocation, effectively unlocking the holding. An alternative approach for “earmarking” the holding could be to use a specific account for settlement purposes, where the sender transfers the holding to the account before allocating it.

I have created an issue here Consider adding locking to the instruction · Issue #592 · digital-asset/daml-finance · GitHub to track this.

Hope that helps!

Johan

← Back to Discussions