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

feat(test): add some additional checks to help llamas #1696

Merged

Conversation

JayWelsh
Copy link
Contributor

@JayWelsh JayWelsh commented Jan 20, 2025

I thought I'd add some extra test checks in case you find them helpful, inspired by this comment: #1695 (comment)

The "rules" can be defined as any combination of type, min & max.

The rules are only checked if there is a value for the field (i.e. it's assumed all fields are optional but we can do checks against the required fields too, like we do with tvl to check that it's in the range of 0-1).

@slasher125 slasher125 merged commit 03bc875 into DefiLlama:master Jan 21, 2025
1 check passed
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