Skip to content

Add scalingFactor to buffers#161

Closed
brunoguerios wants to merge 6 commits intomainfrom
refactor-buffer-decimals
Closed

Add scalingFactor to buffers#161
brunoguerios wants to merge 6 commits intomainfrom
refactor-buffer-decimals

Conversation

@brunoguerios
Copy link
Member

Previous implementation bundled rate and scalingFactor within a single buffer attribute.
This PR aims to split them into 1e18 rate and a separate scalingFactor to scale between main/underlying tokens.
This follows smart contract implementation/pattern and makes it easier for consumers to fetch/provide proper amounts.

@brunoguerios brunoguerios self-assigned this Feb 23, 2026
@brunoguerios
Copy link
Member Author

This PR adds breaking changes that are relevant to only one of its consumers (i.e. Balancer SOR).
After discussing with the team we decided to close the PR and move the refactor to the SOR, so we avoid adding breaking changes that could cause downstream issues to other consumers.

@brunoguerios brunoguerios deleted the refactor-buffer-decimals branch March 12, 2026 18:26
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