Open audsssy opened 2 years ago
May need to update smart contract logic based on tx errors here.
depositAmount
(named amount
as input param) in Vesting
is only used to calculate rate
and rate
is what's used to calculate withdrawAmount
so we should be able to remove following error checks and do error check on rate
instead.
if (amounts[i] > timeDifference) revert InsufficientAmount();
if (amounts[i] % timeDifference != 0) revert AmountNotSpanMultiple();
This is still WIP. Will need to update smart contract to test further.
The latest updates on your projects. Learn more about Vercel for Git ↗︎