Untitled
unknown
ruby
3 years ago
507 B
1
Indexable
Never
for user in users if (user['username'] == login) then amount_rub = params['AMOUNT'].to_f * (1 - @config[:site][:comission].to_f.round(2) ) course = @config[:site][:course].to_f res = @api.query("transferMoney", { :destination => user['username'], :amount => amount_rub / course }, adm_user, false, true) end end