Settlement Pledge Allocation - Does not lock Holding

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

3 Likes

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

3 Likes