Open hats-bug-reporter[bot] opened 5 months ago
The running period is indeed used by the backend to know when to start/stop distributing campaigns. Rewards are distributed as the campaign runs depending on the progress rate and it's intended that there's no net division between the distribution and claim time, as this makes UX smoother (eligible LPs can claim when they want as campaigns are distributed).
Github username: @skypper Twitter username: tudoratu Submission hash (on-chain): 0x0c4f668567bc6045f828f9c0ea56129743e2a4d14a6db4f85399a45bd0abcd62 Severity: low
Description: Description\ The running period of a campaign is ignored, although each campaign is supplied a start time and end time by the campaign owner, unless the purpose of these fields is only informational.
Recommendations\ The protocol should consider the following suggested implementation (or a varation thereof):
updater
account can distribute rewards.Note that currently, in order for the campaign owner to be able to recover the rewards the
updater
account must first distribute all the rewards to the campaign owner which makes the check insiderecoverRewards
redundant. The campaign owner should be able to recover the funds as soon as the distribution period passed.