File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
templates/mpos/account/edit Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 7777$ config ['ap_threshold ' ]['min ' ] = 1 ;
7878$ config ['ap_threshold ' ]['max ' ] = 250 ;
7979
80+ /**
81+ * Minimum manual Payout Threshold
82+ * Minimum manual payout amount
83+ * https://github.com/MPOS/php-mpos/wiki/Config-Setup#wiki-manual-payout-threshold
84+ **/
85+ $ config ['mp_threshold ' ] = 1 ;
86+
8087/**
8188 * Donation thresholds
8289 * Minimum donation amount in percent
Original file line number Diff line number Diff line change 9696 case 'cashOut ' :
9797 if ($ setting ->getValue ('disable_payouts ' ) == 1 || $ setting ->getValue ('disable_manual_payouts ' ) == 1 ) {
9898 $ _SESSION ['POPUP ' ][] = array ('CONTENT ' => 'Manual payouts are disabled. ' , 'TYPE ' => 'info ' );
99+ } else if ($ aBalance ['confirmed ' ] < $ config ['mp_threshold ' ]) {
100+ $ _SESSION ['POPUP ' ][] = array ('CONTENT ' => 'Payout must be greater or equal than ' . $ config ['mp_threshold ' ] . '. ' , 'TYPE ' => 'info ' );
99101 } else if (!$ user ->getCoinAddress ($ _SESSION ['USERDATA ' ]['id ' ])) {
100102 $ _SESSION ['POPUP ' ][] = array ('CONTENT ' => 'You have no payout address set. ' , 'TYPE ' => 'errormsg ' );
101103 } else {
Original file line number Diff line number Diff line change 8888 'txfee_manual ' => $ config ['txfee_manual ' ],
8989 'txfee_auto ' => $ config ['txfee_auto ' ],
9090 'payout_system ' => $ config ['payout_system ' ],
91+ 'mp_threshold ' => $ config ['mp_threshold ' ],
9192 'ap_threshold ' => array (
9293 'min ' => $ config ['ap_threshold ' ]['min ' ],
9394 'max ' => $ config ['ap_threshold ' ]['max ' ]
Original file line number Diff line number Diff line change 8989 <p style =" padding-left :3px ; padding-redight :30px ; font-size :10px ;" >
9090 Please note: a { if $GLOBAL .config.txfee_manual > 0.00001} { $GLOBAL .config.txfee_manual} { else } { $GLOBAL .config.txfee_manual|number_format:" 8" } { /if } { $GLOBAL .config.currency} transaction will apply when processing "On-Demand" manual payments <span id =" tt" ><img width =" 15px" height =" 15px" title =" This { if $GLOBAL .config.txfee_manual > 0.00001} { $GLOBAL .config.txfee_manual} { else } { $GLOBAL .config.txfee_manual|number_format:" 8" } { /if } manual payment transaction fee is a network fee and goes back into the network not the pool." src =" site_assets/mpos/images/questionmark.png" ></span >
9191 </p >
92+ <p style =" padding-left :3px ; padding-redight :30px ; font-size :10px ;" >
93+ Minimum Cashout: { $GLOBAL .config.mp_threshold} { $GLOBAL .config.currency}
94+ </p >
9295 <fieldset >
9396 <label >Account Balance</label >
9497 { nocache} <input type =" text" value =" { $GLOBAL .userdata.balance.confirmed|escape } " { $GLOBAL .config.currency} disabled />{ /nocache}
109112 <input type =" hidden" name =" ctoken" value =" { $CTOKEN |escape|default :" " } " />
110113 <input type =" hidden" name =" utype" value =" withdraw_funds" >
111114 { if $GLOBAL .twofactor.enabled && $GLOBAL .twofactor.options.withdraw}
112- { if $WITHDRAWSENT == 1 && $WITHDRAWUNLOCKED == 1}
115+ { if $GLOBAL .userdata.balance.confirmed|escape < $GLOBAL .config.mp_threshold}
116+ <input type =" submit" value =" Unlock" class =" alt_btn" name =" unlock" disabled >
117+ { elseif $WITHDRAWSENT == 1 && $WITHDRAWUNLOCKED == 1}
113118 <input type =" submit" value =" Cash Out" class =" alt_btn" >
114119 { elseif $WITHDRAWSENT == 0 && $WITHDRAWUNLOCKED == 1 || $WITHDRAWSENT == 1 && $WITHDRAWUNLOCKED == 0}
115120 <input type =" submit" value =" Cash Out" class =" alt_btn" disabled >
You can’t perform that action at this time.
0 commit comments