When a new challenge is created, the Challenger can stake a certain amount of tokens that need to be matched by the Challenged when accepting the challenge. The winner wins the full pot, less a the developer's fee.
[x] Stake tokens from Challenger and Challenged to the smart contract
[x] Ability to stake $LORDS
[x] Ability to stake any erc-20
[x] Distribute the full amount of tokens back to players if the challenge is canceled for any reason
[x] Transfer the full amount to duel winners, less developer fee
[x] On a draw, distribute staked tokens back to players, less developer fee
[x] How much is the developer fee?
[x] Ability to configure developer fee on the smart contract
Developer fee should be 4 LORDS or 10% of the overall stake, whichever is higher, and potentially with an arbitrary fixed fee of N for any non-fungible token. Fee distribution should be:
Implement Play2Die mechanics.
When a new challenge is created, the Challenger can stake a certain amount of tokens that need to be matched by the Challenged when accepting the challenge. The winner wins the full pot, less a the developer's fee.
for later...