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

refactor: remove generic from AssetPair types #4290

Merged
merged 1 commit into from Dec 4, 2023

Conversation

AlastairHolmes
Copy link
Contributor

@AlastairHolmes AlastairHolmes commented Nov 29, 2023

Makes it easier to use the type in the lp api.

}?),
})
}

pub fn new_with_result<T: Config>(base_asset: Asset, pair_asset: Asset) -> Result<Self, Error<T>> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try_new ?

@AlastairHolmes AlastairHolmes enabled auto-merge (squash) December 4, 2023 10:24
@AlastairHolmes AlastairHolmes merged commit d4e1813 into main Dec 4, 2023
40 checks passed
@AlastairHolmes AlastairHolmes deleted the refactor/non-generic-asset-pairs branch December 4, 2023 10:55
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.

None yet

2 participants