Tadle

Tadle
DeFiFoundry
27,750 USDC
View results
Submission Details
Severity: low
Invalid

Maker bonus as specified in the documentation for creating offers is unimplemented

Summary

The maker bonus functionality that's supposed to exist from the docs

Buy Points | Tadle Docs (gitbook.io)

Is not accounted for in any source files

Vulnerability Details

The Maker bonus functionality that's supposed to earn the offer creator additional royalty is not accounted in any of the functions responsible for carrying out Makers and Takers.

stockInfoMap[stockAddr] = StockInfo({
id: offerId,
stockStatus: StockStatus.Initialized,
stockType: params.offerType == OfferType.Ask
? StockType.Bid
: StockType.Ask,
authority: _msgSender(),
maker: makerAddr,
preOffer: address(0x0),
offer: offerAddr,
points: params.points,
amount: params.amount
});
//@audit no parameter to take maker bonus
emit CreateOffer(
offerAddr,
makerAddr,
stockAddr,
params.marketPlace,
_msgSender(),
params.points,
params.amount
);

Impact

The impact is that one of the financial aspects of the token trades is not accounted for in the smart contract, potentially breaking logic

Tools Used

manual analysis

Recommendations

Store the necessary detail in the structs in the MakerInfo.

Updates

Lead Judging Commences

0xnevi Lead Judge
12 months ago
0xnevi Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.