diff --git a/pkg/liquidity-source/generic-simple-rate/pool_list_updater.go b/pkg/liquidity-source/generic-simple-rate/pool_list_updater.go index 0b7237cac..3426f623c 100644 --- a/pkg/liquidity-source/generic-simple-rate/pool_list_updater.go +++ b/pkg/liquidity-source/generic-simple-rate/pool_list_updater.go @@ -151,10 +151,12 @@ func (d *PoolsListUpdater) getNewPool(pool *PoolItem) (entity.Pool, error) { } poolExtraBytes, err := json.Marshal(PoolExtra{ - Rate: uint256.MustFromBig(rate), - RateUnit: uint256.MustFromBig(d.config.RateUnit), - Paused: paused, - DefaultGas: defaultGas, + Paused: paused, + Rate: uint256.MustFromBig(rate), + RateUnit: uint256.MustFromBig(d.config.RateUnit), + IsRateInversed: d.config.IsRateInversed, + IsBidirectional: d.config.IsBidirectional, + DefaultGas: defaultGas, }) if err != nil { return entity.Pool{}, err diff --git a/pkg/liquidity-source/generic-simple-rate/type.go b/pkg/liquidity-source/generic-simple-rate/type.go index a7a67cb0b..ee25acc86 100644 --- a/pkg/liquidity-source/generic-simple-rate/type.go +++ b/pkg/liquidity-source/generic-simple-rate/type.go @@ -13,10 +13,10 @@ type PoolItem struct { } type PoolExtra struct { + Paused bool `json:"paused"` Rate *uint256.Int `json:"rate"` RateUnit *uint256.Int `json:"rateUnit"` - Paused bool `json:"paused"` - IsBidirectional bool `json:"isBidirectional"` IsRateInversed bool `json:"isRateInversed"` + IsBidirectional bool `json:"isBidirectional"` DefaultGas int64 `json:"defaultGas"` }