Initial commit

This commit is contained in:
Yaser
2026-08-13 19:42:08 +03:30
commit d59bf30ef0
173 changed files with 11702 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
email = ENV.fetch('EMAIL', 'admin@barong.io')
member = Member.find_by(email: email)
unless member
puts 'STATUS=NO_MEMBER'
exit 1
end
puts "STATUS=OK uid=#{member.uid} id=#{member.id}"
%w[usdt btc cad].each do |currency|
account = member.accounts.find_by(currency_id: currency)
next unless account
puts "ACCOUNT #{currency} balance=#{account.balance} locked=#{account.locked}"
end