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,22 @@
# encoding: UTF-8
# frozen_string_literal: true
FactoryBot.define do
sequence(:fee) do
Kernel.rand(TradingFee::MIN_FEE..TradingFee::MAX_FEE).to_d
end
sequence(:group) do |n|
"vip-#{n}"
end
factory :trading_fee do
maker { generate(:fee) }
taker { generate(:fee) }
group { generate(:group) }
trait :with_market do
market { Market.all.sample }
end
end
end