This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| contract GameFeeVault { | |
| address private constant DEV_WALLET = 0x478f13BcBe532C8D0FeE9744Ebc827f138ee26A2; | |
| modifier onlyDev() { | |
| require(msg.sender == DEV_WALLET, "GameFeeVault: Access denied"); | |
| _; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; | |
| /** | |
| * @title GameFeeVault | |
| * @dev Kontrak khusus jaringan Base untuk menampung fee game. | |
| * Hanya wallet developer yang diizinkan mengakses & menarik dana. | |
| */ |