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

Clawback metadata #12

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Clawback metadata #12

merged 3 commits into from
Jun 3, 2024

Conversation

Agusx1211
Copy link
Member

  • Use snake case for attributes
  • Add human readable duration values

@Agusx1211 Agusx1211 force-pushed the clawback-metadata branch from 0dc9324 to 48d76fa Compare May 31, 2024 11:38
@@ -194,4 +197,18 @@ contract ClawbackMetadata is IMetadataProvider, IERC165 {
}
return false;
}

function _formatUnlocksIn(uint256 lockedAt, uint256 duration) internal view returns (string memory) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally chose not to add this as most platforms cache the metadata. Thought it would be out of date and confusing for non-native/tech people.
Happy to include if you disagree.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Middle ground would be to reduce the granularity to days and exclude hours etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is a big issue, we can update it later if it gives us trouble.

@Agusx1211 Agusx1211 merged commit 17e9c7d into clawback Jun 3, 2024
3 checks passed
@ScreamingHawk ScreamingHawk deleted the clawback-metadata branch June 3, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants