Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Withdraw collateral asset from vault (#109)
* Controller skeleton code created * clean * fix syntax & clean * clean * fix * init tests * comment function * clean & add tests * getter/view functions * add simple tests * improve tests * improve tests * fix * ignore mock * fix isAuthorized * Update contracts/Controller.sol Co-authored-by: Anton Cheng <antonassocareer@gmail.com> * lint * open vault action * update solcover * add tests * update solcover * clean code * improve tests * fix Otoken call * Update contracts/Controller.sol Co-authored-by: aparnakr <aparnalocked@gmail.com> * Update contracts/Controller.sol Co-authored-by: aparnakr <aparnalocked@gmail.com> * Update contracts/Controller.sol Co-authored-by: aparnakr <aparnalocked@gmail.com> * Update contracts/Controller.sol Co-authored-by: aparnakr <aparnalocked@gmail.com> * add if * fix typo Co-authored-by: aparnakr <aparnalocked@gmail.com> * clean code Co-authored-by: aparnakr <aparnalocked@gmail.com> * test expired otoken * fix typo * improve price tests * add more tests * refactor * clean * init * update open vault * clean * refactor * refactor * add require statement * deposit long * modify expected result * update all expected result to be an input rather just a query from contract * modify open vault to start vault id from 0 * update open vault * update _runActions * update branch * tests * [ ] should execute depositing long otoken into vault in multiple actions * init withdraw * withdraw long * fix test * withdraw long otoken tests * fix code * test depositing two long otokens * improve tests * update mock * deposit collateral * tests * final unit tests * add open vault test * fix typo Co-authored-by: aparnakr <aparnalocked@gmail.com> * withdraw collateral asset * unit tests * add withdraw zero amount test * replace modifier by internal function * test to check withdrawing more than vault balance * fix typo * fix conflicts & typo * add tests * refactor Co-authored-by: Zubin Koticha <zkoticha@gmail.com> Co-authored-by: Anton Cheng <antonassocareer@gmail.com> Co-authored-by: aparnakr <aparnalocked@gmail.com>
- Loading branch information