Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.09 KB

048.md

File metadata and controls

29 lines (15 loc) · 1.09 KB

moneyversed

medium

Potential race condition in lenderAcceptBid function

Summary

The lenderAcceptBid function may be susceptible to race conditions if the loan parameters change while the transaction is in the mempool. This could lead to unintended consequences and non-consensual interest rates on a loan.

Vulnerability Detail

In the TellerV2Context.sol contract, the lenderAcceptBid function could potentially be affected by race conditions if loan parameters change while the transaction is in the mempool. This could result in non-consensual interest rates on a loan, compromising the fairness and integrity of the loan process.

Impact

Potential race condition leading to unintended consequences and non-consensual interest rates on a loan.

Code Snippet

https://github.com/sherlock-audit/2023-03-teller/blob/main/teller-protocol-v2/packages/contracts/contracts/TellerV2.sol#L470

Tool used

Manual Review

Recommendation

Implement proper synchronization mechanisms to prevent race conditions in the lenderAcceptBid function, ensuring the fairness and integrity of the loan process.