Closed JayWelsh closed 2 years ago
In addition to this, I am thinking to add a check into the releaseConsignment
function which makes sure that _amount <= remainingSupply
in the case of a multiToken (ERC1155), to ensure that a consignment is only ever able to release the supply associated with it (in order to prevent someone trying to release tokens with the same ID which are part of a different consignment).
Proposing to fix this in a slightly different way to the suggested fix (to ensure that the checks are done within the releaseConsignment
and issueTicket
functions, instead of doing checks adjacently to calls made to those functions.
i.e. https://github.com/seen-haus/seen-contracts/pull/42/commits/138d2ea0b2963956c380bd2af8f0b9d2b2b01fa6
Initial change increased contract size beyond max
Max contract size violation resolved by https://github.com/seen-haus/seen-contracts/pull/54
SRF-02M: Inexistent Validation of Remaining Supply
Description:
The ticket mechanism of the sale runner does not validate the specified purchase amount can actually be fulfilled by the consignment.
Example:
Recommendation:
We advise this trait of the system to be evaluated and proper validation to be imposed as otherwise unfulfill-able tickets may be created.