@ballkidz/defifa 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/DefifaDeployer.sol +4 -0
- package/src/DefifaGovernor.sol +1 -0
package/package.json
CHANGED
package/src/DefifaDeployer.sol
CHANGED
|
@@ -345,12 +345,14 @@ contract DefifaDeployer is IDefifaDeployer, IDefifaGamePhaseReporter, IDefifaGam
|
|
|
345
345
|
// Payout failed — fee stays in pot. Reset to sentinel (1) so currentGamePotOf
|
|
346
346
|
// doesn't double-count the fee, while preserving the reentrancy guard.
|
|
347
347
|
fulfilledCommitmentsOf[gameId] = 1;
|
|
348
|
+
// slither-disable-next-line reentrancy-events
|
|
348
349
|
emit CommitmentPayoutFailed({gameId: gameId, amount: _feeAmount, reason: reason});
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
// Queue the final ruleset and emit.
|
|
352
353
|
_queueFinalRuleset({gameId: gameId, metadata: _metadata});
|
|
353
354
|
|
|
355
|
+
// slither-disable-next-line reentrancy-events
|
|
354
356
|
emit FulfilledCommitments({gameId: gameId, pot: _pot, caller: msg.sender});
|
|
355
357
|
}
|
|
356
358
|
|
|
@@ -543,6 +545,7 @@ contract DefifaDeployer is IDefifaDeployer, IDefifaGamePhaseReporter, IDefifaGam
|
|
|
543
545
|
// Add the hook to the registry, contract nonce starts at 1
|
|
544
546
|
REGISTRY.registerAddress({deployer: address(this), nonce: _currentNonce});
|
|
545
547
|
|
|
548
|
+
// slither-disable-next-line reentrancy-events
|
|
546
549
|
emit LaunchGame(gameId, _hook, GOVERNOR, _uriResolver, msg.sender);
|
|
547
550
|
}
|
|
548
551
|
|
|
@@ -619,6 +622,7 @@ contract DefifaDeployer is IDefifaDeployer, IDefifaGamePhaseReporter, IDefifaGam
|
|
|
619
622
|
projectId: gameId, rulesetConfigurations: rulesetConfigs, memo: "Defifa game: no contest."
|
|
620
623
|
});
|
|
621
624
|
|
|
625
|
+
// slither-disable-next-line reentrancy-events
|
|
622
626
|
emit QueuedNoContest(gameId, msg.sender);
|
|
623
627
|
}
|
|
624
628
|
|
package/src/DefifaGovernor.sol
CHANGED
|
@@ -174,6 +174,7 @@ contract DefifaGovernor is Ownable, IDefifaGovernor {
|
|
|
174
174
|
// handles sendPayoutsOf failures, ensuring the final ruleset is always queued.
|
|
175
175
|
IDefifaDeployer(CONTROLLER.PROJECTS().ownerOf(gameId)).fulfillCommitmentsOf(gameId);
|
|
176
176
|
|
|
177
|
+
// slither-disable-next-line reentrancy-events
|
|
177
178
|
emit ScorecardRatified(gameId, scorecardId, msg.sender);
|
|
178
179
|
}
|
|
179
180
|
|