Skip to content

Use the cheapest default token when multiple are available#2990

Open
gbrodman wants to merge 1 commit intogoogle:masterfrom
gbrodman:defaultTokens
Open

Use the cheapest default token when multiple are available#2990
gbrodman wants to merge 1 commit intogoogle:masterfrom
gbrodman:defaultTokens

Conversation

@gbrodman
Copy link
Collaborator

@gbrodman gbrodman commented Mar 26, 2026

Previously we would just use the first one we found. This is a valid behavior, but we want to change it so that we apply the cheapest default if multiple are available (this way we avoid having to go back after the fact and give refunds).

this slightly breaks the abstraction of AllocationTokenFlowUtils only worrying about loading tokens (and not any business logic / doing anything with those tokens) but it's not bad.


This change is Reviewable

Previously we would just use the first one we found. This is a valid
behavior, but we want to change it so that we apply the cheapest default
if multiple are available (this way we avoid having to go back after the
fact and give refunds).
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