Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

design reward distribution mechanism among players, i.e. depends on players' buildings #41

Open
github-actions bot opened this issue Oct 20, 2023 · 0 comments
Assignees

Comments

@github-actions
Copy link

for now, calculate the distribution off chain and use this call to distribute reward to a specific player account


//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();


This issue was generated by todo-issue based on a TODO comment in bb809a0. It's been assigned to @Cygnusfear because they committed the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant