interlock-network / interlock-smartcontracts

Interlock Network smart contracts live here.
GNU General Public License v3.0
4 stars 6 forks source link

fix stakeholder_data multi-mapping problem #229

Closed blairmunroakusa closed 1 year ago

blairmunroakusa commented 1 year ago

vest.stakeholder maps account to single StakeholderData struct. We need to enforce multimapping.

Objective:

Implement mapping that goes from AccountId -> Vec

Alter distribute_tokens function appropriately.

Alter payout_tokens to account for everybody being registered as a stakeholder...not just vest pools. (Ie, we register_stakeholder for every single community sale participant.)

ALSO,

Change hard-coded values in payout tokens.

This is per Kudelski findings KS-INT-11 and KS-INT-14

blairmunroakusa commented 1 year ago

Complete via PR 230.