Skip to content

Commit

Permalink
Merge pull request #11311 from vegaprotocol/11307-fix-amm-snapshots
Browse files Browse the repository at this point in the history
fix: typos in snapshot serialisation between AMM upper and lower curv…
  • Loading branch information
wwestgarth authored May 23, 2024
2 parents 0c4fd46 + ef67c3d commit 46437ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/execution/amm/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func NewPoolFromProto(
}

if state.Parameters.UpperBound != nil {
lower, overflow = num.UintFromString(*state.Parameters.UpperBound, 10)
upper, overflow = num.UintFromString(*state.Parameters.UpperBound, 10)
if overflow {
return nil, fmt.Errorf("failed to convert string to Uint: %s", *state.Parameters.UpperBound)
}
Expand Down Expand Up @@ -271,7 +271,7 @@ func (p *Pool) IntoProto() *snapshotpb.PoolMapEntry_Pool {
High: p.upper.high.String(),
Low: p.upper.low.String(),
Empty: p.upper.empty,
Pv: p.lower.pv.String(),
Pv: p.upper.pv.String(),
},
Status: p.status,
}
Expand Down

0 comments on commit 46437ac

Please sign in to comment.