Fungible - Default implementation for split and merge as functions
- jvelasco.intellecteuOP
Hi,
In our project we’ve created a new Interface for Holdings (
Withdrawable). The idea is to extendDaml.Finance.Holding.Fungiblewith this new behaviour. We’ve written a new moduleMyProject.Holding.FungibleWithdrawablewith the contents fromDaml.Finance.Holding.Fungible(exceptinggetRestAmountfunction which we can import fromDaml.Finance.Holding.Fungible) but we ended up with code duplicated.Would it be possible to extract the logic on
splitandmergefunctions (interface instance Fungible.I) into functions (say splitImpl and mergeImpl) in the same way it’s done with transferImpl, acquireImpl, releaseImpl, etc ?Thanks
Jose - Johan_Sjodin 1
jvelasco.intellecteu:extract the logic on
splitandmergefunctions (interface instance Fungible.I) into functions (say splitImpl and mergeImpl) in the same way it’s done with transferImpl, acquireImpl, releaseImpl, etc ?I think that makes sense. I have created a ticket where we can track it here:
github.com/digital-asset/daml-financeFactor out `splitImpl` and `mergeImpl` from the `Fungible` implementation
component-core gardening user-experienceThanks,
Johan