Skip to content

Commit 4903ccd

Browse files
committed
fix: bson typo
1 parent 68ea1aa commit 4903ccd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/entities/quote/pegin_quote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type CreatedPeginQuote struct {
4646

4747
type PeginCreationData struct {
4848
GasPrice *entities.Wei `json:"gasPrice" bson:"gas_price" validate:"required"`
49-
FeePercentage *utils.BigFloat `json:"feePercentage" bson:"gte=0,lt=100,max_decimal_places=2" validate:"required"`
49+
FeePercentage *utils.BigFloat `json:"feePercentage" bson:"fee_percentage" validate:"required"`
5050
FixedFee *entities.Wei `json:"fixedFee" bson:"fixed_fee" validate:"required"`
5151
}
5252

internal/entities/quote/pegout_quote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type CreatedPegoutQuote struct {
5353

5454
type PegoutCreationData struct {
5555
FeeRate *utils.BigFloat `json:"feeRate" bson:"fee_rate" validate:"required"`
56-
FeePercentage *utils.BigFloat `json:"feePercentage" bson:"gte=0,lt=100,max_decimal_places=2" validate:"required"`
56+
FeePercentage *utils.BigFloat `json:"feePercentage" bson:"fee_percentage" validate:"required"`
5757
GasPrice *entities.Wei `json:"gasPrice" bson:"gas_price" validate:"required"`
5858
FixedFee *entities.Wei `json:"fixedFee" bson:"fixed_fee" validate:"required"`
5959
}

0 commit comments

Comments
 (0)