Outputs above the maximum amount will not get selected.
Declared in <wallet/spend.h>
<wallet/spend.h>
CAmount max_amount = {MAX_MONEY};