Closed julienbrs closed 3 weeks ago
Should we check the rightness of the share argument in the compute method? Or is it an assumed counstraints (between 0 and 100)?
As the Share is compute only in the Minter and not pass as parameters (after setup the access control), we could assumed the constrain
INVALID_STARTING_YEAR might be raised in compute_carbon_vintage_distribution. It hasn't been tested, because mismatch_length error is already detected in the setter (set_absorptions).
Sorry, I dont understand your point
closes #25
Functions tested
in
test_carbon_handler.cairo
Additional information:
share
argument in the compute method? Or is it an assumed counstraints (between 0 and 100)?INVALID_STARTING_YEAR
might be raised incompute_carbon_vintage_distribution
. It hasn't been tested, because mismatch_length error is already detected in the setter (set_absorptions
).