Description:Description\
The sendRequest function transfers tokens from msg.sender. However, some tokens implement fee-on-transfer mechanisms, which means they don't transfer the actual amount specified. This inconsistency can cause sendRequestNative transactions to revert later on.
Impact\
Denial-of-Service (DoS) vulnerability in the sendRequestNative function.
Revised Code File (Optional)\
Calculate the transferred amount based on the balance before and after the transfer.
Github username: @0xmahdirostami Twitter username: 0xmahdirostami Submission hash (on-chain): 0x80a6c6a2034a5ecaf904b8e915a87b91afe95d35e590eea2ba9f8d3e06f6a80e Severity: medium
Description: Description\ The
sendRequest
function transfers tokens frommsg.sender
. However, some tokens implement fee-on-transfer mechanisms, which means they don't transfer the actual amount specified. This inconsistency can causesendRequestNative
transactions to revert later on.Impact\ Denial-of-Service (DoS) vulnerability in the
sendRequestNative
function.Revised Code File (Optional)\ Calculate the transferred amount based on the balance before and after the transfer.