sechub
HomeServicesAssetsJobsFindingsTicketsGovCheck
Guest Mode. Click here to sign in and access all features

    Failing to send treasury spin fee reverts entire buy

    Blast the balloon SC Audit

    Severity
    Low
    Status
    Acknowledged
    Location(s)

    BTB.sol#L427

    Description

    A user acquisition of a spin is a time sensitive operation, done within a specific time duration. If the transfer to the treasury does fail, this should not result in the transaction failing as the treasury transfer is not critical to game functionality.

    Recommendation

    Instead of reverting if the treasury transfer fails, emit an event with the treasury amount that was failed to be send and have it be withdrawn via the emergencyWithdraw at a later time by the protocol admin.

    Comments
    No comments yet

    Failing to send treasury spin fee reverts entire buy

    Blast the balloon SC Audit

    Severity
    Low
    Status
    Acknowledged