* add calculation for max borrowings * implement borrow side for modal * add test and resolve comments