Insrt-Finance / insrt-v2-contracts

0 stars 3 forks source link

Feat: Add `mintFeeDistributionRatioBP` support #212

Closed CruzMolina closed 11 months ago

CruzMolina commented 11 months ago

Resolves INSRT-136, INSRT-138, INSRT-139, & INSRT-140.

linear[bot] commented 11 months ago
INSRT-136 Add collection-specific mint fee ratios

In order to collect more fees for collections with higher probabilities of winning, we can add a `mintFeeDistributionRatioBP` to `CollectionData` that is used to determine the mint fee distribution between the depositor fund and consolation fund.

INSRT-138 Add setter & event for updating `mintFeeDistributionRatioBP`s

INSRT-139 Add getter for `mintFeeDistributionRatioBP`s

INSRT-140 Integrate `mintFeeDistributionRatioBP`s into `_attemptBatchMint*` for determining mint fee distribution