Insrt-Finance / insrt-v2-contracts

0 stars 3 forks source link

Identify and resolve possible edge cases #79

Open CruzMolina opened 1 year ago

CruzMolina commented 1 year ago

We should take a look at ensuring we are either testing for and/or including guards in each of our flows (depositing, withdrawing, claiming, idling, reactivating tokens, & updating token risks) to protect against edge cases (0 risks, 0 amounts, etc).

CruzMolina commented 1 year ago

We should also make sure storage updates (for earnings, deductions, amounts, risks, etc) are aligned in each flow.