Closed BenGOsborn closed 2 years ago
Separate all code into its own seperate modules e.g. margin, pool
Add a custom liquidation function and then a default one that people may use for liquidations (provide documentation for this too).
I could also do this for the repayment, and then have a default repayment option - this would allow some users to get a better yield or a cheaper price than using one of the standard pools and WOULDNT be completely dependent on an oracle?
This could be something to think about for V2 if we use an oracle that isnt dependent on a liquidity pool by using something like Chainlink.
Separate all code into its own seperate modules e.g. margin, pool
Finished seperation in 00d0fb46c23144732ea81f2d8a15c2fb8026e1dd