Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
[submodule "src/rust/soroban/p29"]
path = src/rust/soroban/p29
url = https://github.com/stellar/rs-soroban-env.git
branch = release/v29.0.0-internal
[submodule "src/rust/soroban/p30"]
path = src/rust/soroban/p30
url = https://github.com/stellar/rs-soroban-env.git
Expand Down
100 changes: 57 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/herder/Upgrades.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,8 @@ updateOffer(
// liabilities for this offer, so the only applicable limit is the
// offer amount. We then use adjustOffer to check that it will
// satisfy thresholds.
if (!erase && adjustOffer(offer.price, offer.amount, INT64_MAX) == 0)
if (!erase && adjustOffer(header.current().ledgerVersion, offer.price,
offer.amount, INT64_MAX) == 0)
{
erase = true;
res = UpdateOfferResult::AdjustedToZero;
Expand All @@ -879,7 +880,8 @@ updateOffer(
// The same logic for adjustOffer discussed above applies here,
// except that we now actually update the offer to reflect the
// adjustment.
auto adjAmount = adjustOffer(offer.price, offer.amount, INT64_MAX);
auto adjAmount = adjustOffer(header.current().ledgerVersion,
offer.price, offer.amount, INT64_MAX);
if (adjAmount != offer.amount)
{
offer.amount = adjAmount;
Expand Down
Loading
Loading