Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dandy Caramel Tortoise - Using .approve will cause bidding to revert in LenderCommitmentGroup_Smart.sol #44

Open
sherlock-admin3 opened this issue Dec 10, 2024 · 1 comment
Labels
Sponsor Confirmed The sponsor acknowledged this issue is valid Will Fix The sponsor confirmed this issue will be fixed

Comments

@sherlock-admin3
Copy link
Contributor

Dandy Caramel Tortoise

Medium

Using .approve will cause bidding to revert in LenderCommitmentGroup_Smart.sol

Summary

Using .approve will cause bidding to revert in LenderCommitmentGroup_Smart.sol

Root Cause

.approve is used expecting a boolean return variable which will revert for USDT since it doesn't return anything. The team specifically plans to support USDT

        principalToken.approve(address(TELLER_V2), _principalAmount);

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

Bidding in LenderCommitmentGroup_Smart will revert for USDT

PoC

No response

Mitigation

Use .safeApprove instead

@sherlock-admin3 sherlock-admin3 added Sponsor Confirmed The sponsor acknowledged this issue is valid Will Fix The sponsor confirmed this issue will be fixed labels Dec 12, 2024
@sherlock-admin2
Copy link

The protocol team fixed this issue in the following PRs/commits:
teller-protocol/teller-protocol-v2-audit-2024#78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sponsor Confirmed The sponsor acknowledged this issue is valid Will Fix The sponsor confirmed this issue will be fixed
Projects
None yet
Development

No branches or pull requests

2 participants