Usd0PP.sol::_deconstruct() is always called with msg.sender despite having receiver arguments
Summary
Usd0PP.sol::_deconstruct() is currently always called with msg.sender for both receiver arguments, so separate functions to mint with flexible receiver are missing.
Vulnerability Detail
The function is defined as function _deconstruct(uint256 amountUsd0, address bAssetRecipient, address rAssetRecipient), but in the code only Usd0PP.sol::mint() and Usd0PP.sol::mintWithPermit() are exposed, and they don't allow to specify different recipients, so the functionality is not fully implemented.
Impact
Missing functionality.
Code Snippet
Tool Used
Manual Review
Recommendation
Add separate mint functions that allow receivers other than msg.sender.