add BuyCryptoOrder and SellCryptoOrder entities

This commit is contained in:
João Geonizeli
2021-08-14 17:42:19 -03:00
parent 30ab1b11f1
commit 57a3fcf25f
12 changed files with 437 additions and 49 deletions

View File

@@ -14,7 +14,7 @@ currency = Currency.create!(name: "CAKE")
Balance.create!(
user_id: user.id,
currency_id: currency.id,
amount: (rand * (10000 - 0) + 0)
amount: rand * 10000
)
FiatBalance.create!(user_id: user.id, amount_cents: 15000)