Description:
The VaultPermissions contract distinguishes the quantity of borrow andwithdrawal allowances by keeping those into separate mappings. However, the decreaseWithdrawAllowance function incorrectly assigns value from _withdrawAllowance mapping into the currentAllowance variable.
Recommendation:
Change the decreaseWithdrawAllowance function, so as to assign the appropriate value into the currentAllowance variable.
Where: https://github.com/Fujicracy/fuji-v2/blob/ab02d2308797577973ac358af8c7aadf973bcec7/packages/protocol/src/vaults/VaultPermissions.sol#L100
Description: The VaultPermissions contract distinguishes the quantity of borrow andwithdrawal allowances by keeping those into separate mappings. However, the decreaseWithdrawAllowance function incorrectly assigns value from _withdrawAllowance mapping into the currentAllowance variable.
Recommendation: Change the decreaseWithdrawAllowance function, so as to assign the appropriate value into the currentAllowance variable.