Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Breeder cooldown #50

Closed
leovigna opened this issue Mar 3, 2022 · 1 comment
Closed

Breeder cooldown #50

leovigna opened this issue Mar 3, 2022 · 1 comment
Assignees

Comments

@leovigna
Copy link
Collaborator

leovigna commented Mar 3, 2022

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

  • Set cooldown: Cooldown time in seconds
  • Track tokenId => lastBredAt
  • When parents breed
    • Check lastBredAt + cooldown < block.timestamp
    • Update lastBredAt for each parent
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants