Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
5e3454b502
commit
6d73358f0a
@ -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) {
|
||||||
|
|||||||
@ -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());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user