teller-protocol / teller-protocol-v1

Teller is a lending and undercollateralized borrowing protocol on the Ethereum blockchain. Teller is the first protocol to allow zero collateral borrowing for greater than one block.
https://teller.finance/
MIT License
104 stars 38 forks source link

Feature/manager profit fee #456

Closed ethereumdegen closed 3 years ago

ethereumdegen commented 3 years ago

Adds an optional mgmt fee parameter to PlatformSettings, set at 5% by default. When a loan is repaid, if excess profits were made with the borrowed escrowed lending token, then 5% of those excess profits will be given to the tToken liquidity pool such that 95% of the excess profits will be claimed back to the borrower.

Unit tests were added to loans.tests.ts.

passabilities commented 3 years ago

@admazzola this PR branch can be deleted as well correct?

ethereumdegen commented 3 years ago

yes - now we are to use feature/manager-profit-fee-r2. I did that because starting fresh was easier than rebasing this branch