Skip to content

Fix: something meaningful#10

Open
fl124804gmailcom wants to merge 1 commit intoaerodrome-finance:mainfrom
fl124804gmailcom:fix-something
Open

Fix: something meaningful#10
fl124804gmailcom wants to merge 1 commit intoaerodrome-finance:mainfrom
fl124804gmailcom:fix-something

Conversation

@fl124804gmailcom
Copy link

I optimized the test suite by reducing unnecessary repeated asynchronous calls and simplifying several expressions. In places where the same data was fetched multiple times, such as tokens or pools, the value is now retrieved once and reused. This makes the tests more efficient and easier to reason about, while keeping their behavior unchanged.

I replaced lambda expressions inside map with generator expressions in sum calls, which improves readability and follows common Python best practices. I also slightly reorganized variable names so they better reflect their purpose, for example using token, pools, epochs instead of short or less clear names.

Additionally, I added concise inline comments to explain the intent of each test and the meaning of non-obvious operations. The comments focus on why something is being tested rather than restating what the code already clearly shows. Overall, the structure and logic of the tests remain the same, but the code is now cleaner, more readable, and more efficient.

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.

1 participant