On master,
assert_fee_amount(Decimal("0.00000993"), 217, Decimal("0.00004531"))
passes
assert_fee_amount(Decimal("0.00000993"), Decimal("217"), Decimal("0.00004531"))
fails.
the reason is that the // operator in ceildiv(a,b) = -(-a//b)
has a different behavior for Decimals, see doc.
wallet_send.py
calls this function with Decimals, and I think this is the reason for the failure reported in the OP of #24151 (wallet_send.py --legacy-wallet
line 332, the numbers used in the example above are from there). However, the other failures reported there cannot be explained by this, so this is just a partial fix.