You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.
To curb the inflationary dynamics introduced by the NFT breeding mechanic, some games have built-in cooldowns which prevent a parent to breed again for a certain period of time. Introduce such logic to a Breeder contract.
Features
Set cooldown: Cooldown time in seconds
Track tokenId => lastBredAt
When parents breed
Check lastBredAt + cooldown < block.timestamp
Update lastBredAt for each parent
The text was updated successfully, but these errors were encountered:
Description
To curb the inflationary dynamics introduced by the NFT breeding mechanic, some games have built-in cooldowns which prevent a parent to breed again for a certain period of time. Introduce such logic to a
Breeder
contract.Features
cooldown
: Cooldown time in secondstokenId => lastBredAt
lastBredAt + cooldown < block.timestamp
lastBredAt
for each parentThe text was updated successfully, but these errors were encountered: