if the destination is isExcludedFromFees , no protocol fee is charged.
importFees is computed and added with protocolFees.
The protocolFees is substracted from input value
valueAfterFees is minted to the destination address.
the protocol fee is minted by sbtracting the importfee.
If we see, nowhere the importFees is realised.
Impact\
importFees will be missed without utlising.
Attachments
Revised Code File (Optional)
We are not sure why the importfee is charged. if it is planned to add with protocol fee, do not subtract it from protocol fee while minting the fee to owner.
Github username: -- Twitter username: -- Submission hash (on-chain): 0xbb0713bde0b16f80b00c0ad3bf9a35a9002b648d4b3934b456b35c7ec077e939 Severity: medium
Description: Description\
when a deposit is made by, the internal call makes the
_onActionDeposit
function. where, we can see the following code block.VaultBitcoinWallet.sol#L473-L486
if the destination is isExcludedFromFees , no protocol fee is charged.
importFees
is computed and added withprotocolFees
.The protocolFees is substracted from input
value
valueAfterFees
is minted to the destination address.the protocol fee is minted by sbtracting the importfee.
If we see, nowhere the
importFees
is realised.Impact\
importFees
will be missed without utlising.Attachments
We are not sure why the importfee is charged. if it is planned to add with protocol fee, do not subtract it from protocol fee while minting the fee to owner.