Open hbulgarini opened 7 months ago
the description needs more development but:
At the moment the vec PaymentPlan stored in the Agreements storage item only tracks the block number. Then on each installment this is calculated on the fly as soon as i understand when the extrinsic consumer_prepay_installment
.
So, how a consumer query the amount of each installment? we might do some off chain calculation yes .. but i wonder if some runtime API can calculate this.
@hbulgarini can you provide any details please?