Elastic-Finance-DAO / eefi_contracts

0 stars 0 forks source link

Revised TokenUpgrader #62

Closed davoice-321 closed 8 months ago

davoice-321 commented 8 months ago

Changes:

-Updated solidity version -Added Ownable import -Re-organized and labeled contract sections

-Added TokenClaimInfo as vestingManager tracks token claims, which is accessed via retrieveTokenClaim data

-Extended IVestingExecutor interface to include retrieveTokenClaimData

-Added excluded address management to allow us to exclude addresses from upgrade (can only be called by owner)

-Revised upgrade function to:

-Prevent excluded addresses from upgrading -Create a listing of valid scheduleIDs (schedules started before round 3) -Uses valid schedulIDs to filter token claim data (using retrievetokenClaimData) -Made various edits to comments -Edited claimed token check to check if claimInfos array is empty rather than using claimed amount