Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-10-12 13:07:20 +03:00
parent 5e3454b502
commit 6d73358f0a
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 2 additions and 7 deletions

View File

@ -174,7 +174,7 @@ contract Gatekeeper is IGatekeeper, Weaver, ReentrancyGuard {
uint256 receiverAmount = amount - bountyAmount; uint256 receiverAmount = amount - bountyAmount;
StorageHistory(storageHistory).trySetTransactionExecuted(exodusSession); StorageHistory(storageHistory).trySetTransactionExecuted(exodusSession);
IStorageHistory(storageHistory).tryIncreaseBridgeOut(receiverAmount); IStorageHistory(storageHistory).tryIncreaseBridgeOut(amount);
IStaking(staking).recall(payload.receiver, receiverAmount); IStaking(staking).recall(payload.receiver, receiverAmount);
if (bountyAmount > 0) { if (bountyAmount > 0) {

View File

@ -203,6 +203,7 @@ contract GatekeeperRecallTest is Test {
expectedEthRefund = expectedEthRefund * 1e18 / 1e9; expectedEthRefund = expectedEthRefund * 1e18 / 1e9;
assertApproxEqAbs(actualReceiver.balance, receiverEthBefore + expectedEthRefund, 1); assertApproxEqAbs(actualReceiver.balance, receiverEthBefore + expectedEthRefund, 1);
assertEq(ghostedSupplyBefore - actualAmount, staking.ghostedSupply());
} }
{ {
@ -219,11 +220,5 @@ contract GatekeeperRecallTest is Test {
treasury.auditReserves(); treasury.auditReserves();
assertApproxEqAbs(treasury.totalReserves() * 1e18 / ftso.totalSupply(), backingRatioBefore - expectedDelta, 2000); assertApproxEqAbs(treasury.totalReserves() * 1e18 / ftso.totalSupply(), backingRatioBefore - expectedDelta, 2000);
} }
{
uint256 receiverGhstAfter = ghst.balanceOf(actualReceiver);
uint256 receiverImbalance = receiverGhstAfter - receiverGhstBefore;
assertEq(ghostedSupplyBefore - receiverImbalance, staking.ghostedSupply());
}
} }
} }