refactor(Tx): record rate and use Math.ceil instead of Math.floor

This commit is contained in:
Danny Avila 2023-10-06 13:39:30 -04:00 committed by Danny Avila
parent 599d70f1de
commit 09c03b9df0
2 changed files with 5 additions and 1 deletions

View file

@ -26,6 +26,7 @@ const transactionSchema = mongoose.Schema({
valueKey: {
type: String,
},
rate: Number,
rawAmount: Number,
tokenValue: Number,
});