# Planned Smart Contract Upgrades

**URL:** <https://forum.truefi.io/t/planned-smart-contract-upgrades/228>\
**Category:** Uncategorized\
**Created:** [January 22, 2021, 1:07am UTC](https://forum.truefi.io/t/planned-smart-contract-upgrades/228 "2021-01-22T01:07:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/hal/32/228_2.png) [@hal](https://forum.truefi.io/u/hal)\
**Post date:** [January 22, 2021, 1:07am UTC](https://forum.truefi.io/t/planned-smart-contract-upgrades/228/1 "2021-01-22T01:07:16Z")

</div>

Hi, tonight we will be making an upgrade to the TrueFi Smart contract suite. This upgrade adds a liquid exit feature allowing for increased liquidity for TFI-LP holders when there is TUSD available in the pol. This upgrade also fixes a bug in TFI-LP price calculation when a loan has been repaid, but not set as closed in the pool contract.

The following changes are going into effect:

- Stop using infinite approval in curve
- Remove whitelist from TrueLender and require LoanTokens are deployed by borrower instead
- Fix loans value calculation (in LoanToken & TrueLender)
- Add cooldown on exit to prevent arbitrage
- Treat year as 365 days
- Add limit to total number of loans in TrueLender (100)
- Add view method for claimable and claimed rewards
- Restrict loan funding to lender
- Fix distributions after empty() was called
- Prevent borrower from repaying with surplus
- Add liquidWithdraw mechanism
- Add reclaim function to LoanToken
- Added arg validation and events
- Set burn & loss factor in accordance with spec
- Set slippage for withdrawing from curve

Below are the new smart contracts:

TrueFiPool: [Contract Address 0x3Fe853e7E5f78C00405fC80DAF7f7baDE2E53E46 | Etherscan](https://etherscan.io/address/0x3Fe853e7E5f78C00405fC80DAF7f7baDE2E53E46#code)  
LoanFactory: [Contract Address 0x979D49C4813CD68005df1c97c05365bbaE76550D | Etherscan](https://etherscan.io/address/0x979D49C4813CD68005df1c97c05365bbaE76550D#code)  
TrueRatingAgency: [Contract Address 0x57FeA15015C8f0Fd35B3A25f57A75a94656B1769 | Etherscan](https://etherscan.io/address/0x57FeA15015C8f0Fd35B3A25f57A75a94656B1769#code)  
TrueLender: [Contract Address 0xBF172BE09325612392a41a0D8a5d8ee6aB895f95 | Etherscan](https://etherscan.io/address/0xBF172BE09325612392a41a0D8a5d8ee6aB895f95#code)

Cheers!

---

<div class="post-metadata">

**Author:** ![subhajit.ray](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.truefi.io/subhajit.ray/32/51_2.png) [@subhajit.ray](https://forum.truefi.io/u/subhajit.ray)\
**Post date:** [January 22, 2021, 3:44pm UTC](https://forum.truefi.io/t/planned-smart-contract-upgrades/228/2 "2021-01-22T15:44:51Z")

</div>

What is the cooldown period on exit set to right now?

---

<div class="post-metadata">

**Author:** ![intothemoonlite](https://avatars.discourse-cdn.com/v4/letter/i/7ea924/32.png) [@intothemoonlite](https://forum.truefi.io/u/intothemoonlite)\
**Post date:** [January 23, 2021, 2:32am UTC](https://forum.truefi.io/t/planned-smart-contract-upgrades/228/3 "2021-01-23T02:32:41Z")

</div>

@hal on [https://app.truefi.io/farm](https://app.truefi.io/farm) I see three active pools. Can you please share etherscan links for these three pools?
