

 <?mf-xml version="1.0"?>
	<block ID="12478635680" Active="1" Name="Limiting the liability of a bet" Repeat="0.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12478635680</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>0</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>my_bet</Price>
				<Amount>0.1*IF(test_mode=1, test_balance, balance)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting bet size</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12478635680</BlockID>
				<Action>1</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>11</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>0</Persistence>
				<Price>lay_price</Price>
				<Amount>IF(my_bet*(lay_price-1) &gt; 100, 100/(lay_price-1), my_bet)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>laying on the third favourite</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
 