Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
module Jobs
module Cron
module WithdrawAudit
def self.process
# TODO must check with new design of limit
Withdraw.accepted.where('updated_at < ?', 30.seconds.ago).each do |withdraw|
withdraw.process! if withdraw.verify_limits
end
sleep 30
end
end
end
end