Submitted by yixxas, also found by minhquanym and cccz
User will have their funds lost if they tries to pay the protocol with _dontMint = False. A payment made with this parameter set should increase the creditsOf[] balance of user.
In _processPayment(), creditsOf[_data.beneficiary] is updated at the end if there are leftover funds. However, If metadata is provided and _dontMint == true, it immediately returns.
JBTiered721Delegate.sol#L524-L590
Ive wrote a coded POC to illustrate this. It uses the same Foundry environment used by the project. Simply copy this function to E2E.t.sol to verify.
Foundry
Update the creditsOf[] in the if(_dontMint) check.
mejango (Juicebox DAO) commented on duplicate issue #157:
drgorillamd (Juicebox DAO) commented on duplicate issue #157:
Picodes (judge) commented:
drgorillamd (Juicebox DAO) commented:
Picodes (judge) commented:
Picodes (judge) commented:
mejango (Juicebox DAO) commented:
