Skip to content

Commit

Permalink
rfqmsg: rename variable suggestedRateTick
Browse files Browse the repository at this point in the history
  • Loading branch information
ffranr committed Oct 21, 2024
1 parent 4e26119 commit 3efc8a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rfqmsg/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ func newRequestWireMsgDataFromSell(q SellRequest) (requestWireMsgData, error) {

assetMaxAmount := tlv.NewPrimitiveRecord[tlv.TlvType16](q.AssetAmount)

// Convert the suggested rate to a TLV record.
var suggestedRateTick requestSuggestedAssetRate
// Convert the suggested asset rate to a TLV record.
var suggestedAssetRate requestSuggestedAssetRate
q.SuggestedAssetRate.WhenSome(func(rate rfqmath.BigIntFixedPoint) {
// Convert the BigIntFixedPoint to a Uint64FixedPoint.
wireRate := NewTlvFixedPointFromBigInt(rate)
suggestedRateTick = tlv.SomeRecordT[tlv.TlvType19](
suggestedAssetRate = tlv.SomeRecordT[tlv.TlvType19](
tlv.NewRecordT[tlv.TlvType19](
wireRate,
),
Expand Down Expand Up @@ -222,7 +222,7 @@ func newRequestWireMsgDataFromSell(q SellRequest) (requestWireMsgData, error) {
ID: id,
Expiry: expiry,
AssetMaxAmount: assetMaxAmount,
SuggestedAssetRate: suggestedRateTick,
SuggestedAssetRate: suggestedAssetRate,
InAssetID: inAssetID,
OutAssetID: outAssetID,
OutAssetGroupKey: outAssetGroupKey,
Expand Down

0 comments on commit 3efc8a8

Please sign in to comment.