📌Play To Earn Contract
Overview
The P2EGame
(Play-to-Earn Game) contract is designed for managing a gaming ecosystem where players can stake ERC20 tokens in a gaming escrow.
The contract handles the staking of tokens, tracks game states, and manages token payouts based on game outcomes.
Methods
gameState
gameState
Retrieves the current state of game funds in escrow.
Parameters
Returns
createGame
createGame
Parameters
Returns
playerWon
playerWon
Parameters
Returns
playerLost
playerLost
Parameters
Returns
Withdraw
Withdraw
Parameters
Returns
Last updated