teller-protocol / teller-protocol-v2-audit-2024

teller-protocol-v2-audit-2024
MIT License
0 stars 0 forks source link

Need to do proper accounting in LenderGroup contract when accepting funds from Escrow #55

Open ethereumdegen opened 1 week ago

ethereumdegen commented 1 week ago
   function withdrawFromEscrowVault ( uint256 _amount ) public whenForwarderNotPaused whenNotPaused {

        address _escrowVault = ITellerV2(TELLER_V2).getEscrowVault();

        IEscrowVault(_escrowVault).withdraw(address(principalToken), _amount );

    }

Need to increment accounting for amount repaid..

ethereumdegen commented 3 days ago

fixed in #62