kalidao / kali-ui

Here lies the UI for KALI
https://app.kali.gg/
23 stars 23 forks source link

Vesting #214

Open audsssy opened 2 years ago

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
kali-ui ✅ Ready (Inspect) Visit Preview May 27, 2022 at 11:21AM (UTC)
audsssy commented 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.