Update roll efficiency calculation #1362
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
This updates a max-RV calculation, and fix a minor bug that overestimate max RV in certain scenarios.
Issue or discord link
Testing/validation
Current
![current](https://private-user-images.githubusercontent.com/16190491/287783522-e6ff01c2-7bc7-438e-a2b5-ed824f7b6e55.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDEzMDYsIm5iZiI6MTczOTAwMTAwNiwicGF0aCI6Ii8xNjE5MDQ5MS8yODc3ODM1MjItZTZmZjAxYzItN2JjNy00MzhlLWEyYjUtZWQ4MjRmN2I2ZTU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA3NTAwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjNzE1YzU3MjMyNWY2ZmM3MjRjMThiNzE3NGY0YWQ1Y2IwYjhjZjY1N2VkYjc0ZTlmYTBlYTVkMDZhYmUyOTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kTafjCNaUVN-HLaFT8U7hUi_RLLoQ2QalrhGqm1z5B4)
Corrected
![corrected](https://private-user-images.githubusercontent.com/16190491/287783539-35d65a6c-4e53-45b9-ba46-9601d5c6cb35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDEzMDYsIm5iZiI6MTczOTAwMTAwNiwicGF0aCI6Ii8xNjE5MDQ5MS8yODc3ODM1MzktMzVkNjVhNmMtNGU1My00NWI5LWJhNDYtOTYwMWQ1YzZjYjM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA3NTAwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5NWNiZGE3NjI4MzUwNzQyMTYzNDJhYTg4N2QyYWYwMGJkY2UwZGNhZDdkYzUzOGViN2NlMzQxOWE0ZDhlYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.24AIU6MBZ1skH3Jt0Q4CRY-IYF3j3aOGz5CZWqiBr04)
Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)
yarn run mini-ci
locally to validate format + lint.nx format write
to resolve them automatically.