{ "p": "test", "v": "0.8", "op": "deploy", "name": "test_down03", "func": "fn valid_if(para: &[String]) -> bool { return get_tx_block_number(&get_ord_genesis_tx_id(¶[0])) + 2 <= get_block_number() && (ord_ref_byself(&get_ord_id())) && get_ocf_params(¶[0])[0].as_bytes()[0] as char >= '0' && get_ocf_params(¶[0])[0].as_bytes()[0] as char <= '3' && get_ocf_params(¶[0])[0].as_bytes()[0] as char == get_block_hash(get_block_number()).chars().last().unwrap() && get_brc20_tick(&get_ord_id(), 0) == \"bbaa\" && get_brc20_amt(&get_ord_id(), 0) + get_brc20_current_supply(&get_ord_id(), 0) <= get_brc20_max_supply(&get_ord_id(), 0) * 0.9 && get_brc20_amt(&get_ord_id(), 0) <= if get_brc20_balance(&get_ord_owner(), \"amax\") >= 1.0 && get_brc20_balance(&get_ord_owner(), \"punk\") >= 1.0 && get_brc20_balance(&get_ord_owner(), \"sats\") >= 1.0 { 1000.0 } else if get_brc20_balance(&get_ord_owner(), \"amax\") >= 1.0 && get_brc20_balance(&get_ord_owner(), \"sats\") >= 1.0 { 750.0 } else if get_brc20_balance(&get_ord_owner(), \"amax\") >= 1.0 && get_brc20_balance(&get_ord_owner(), \"punk\") >= 1.0 { 750.0 } else if get_brc20_balance(&get_ord_owner(), \"amax\") >= 1.0 { 625.0 } else { 500.0 };}" }