Function: distribute()
This function is used to distribute coupon tokens to bond token holders.
Branches and code coverage
Intended branches
Calculate
couponAmountToDistribute
, which is the coupon amount to distribute.Increase the bond token period.
Transfer coupon tokens to the distributor.
Call allocate to update the distributor with the amount to distribute.
Negative behavior
Revert if the auction has not succeeded.
Revert if the distribution period has not passed.