Untitled
unknown
ruby
4 years ago
507 B
8
Indexable
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
endEditor is loading...