generated from rajput-hemant/react-template-vite
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
for now, calculate the distribution off chain and use this call to distribute reward to a specific player account
laputa/packages/contracts/src/systems/MockSystem.sol
Lines 28 to 33 in bb809a0
| //TODO: design reward distribution mechanism among players, i.e. depends on players' buildings | |
| //for now, calculate the distribution off chain and use this call to distribute reward to a specific player account | |
| function mockReleaseRewardToPlayer(address account, uint256 amount) public { | |
| ILapuVault lapuVault = ILapuVault(GameSetting.getLapuVaultAddress()); | |
| lapuVault.transfer(account, amount); | |
| uint256 currentTotalRewarded = GameSetting.getTotalRewarded(); |