Skip to content

Instantly share code, notes, and snippets.

@sgerodes
Created January 24, 2024 06:52
Show Gist options
  • Save sgerodes/85d6b37cb4a29d183ae8be945e1aa95e to your computer and use it in GitHub Desktop.
Save sgerodes/85d6b37cb4a29d183ae8be945e1aa95e to your computer and use it in GitHub Desktop.
assign 4 unimplemented
// Look at `../interface/` to better understand this API.
impl<T: Config> pba_interface::DexInterface for Pallet<T> {
type AccountId = T::AccountId;
type AssetId = <T::Fungibles as fungibles::Inspect<Self::AccountId>>::AssetId;
type AssetBalance = <T::Fungibles as fungibles::Inspect<Self::AccountId>>::Balance;
fn setup_account(_who: Self::AccountId) -> DispatchResult {
unimplemented!()
}
fn mint_asset(
_who: Self::AccountId,
_token_id: Self::AssetId,
_amount: Self::AssetBalance,
) -> DispatchResult {
unimplemented!()
}
fn asset_balance(_who: Self::AccountId, _token_id: Self::AssetId) -> Self::AssetBalance {
unimplemented!()
}
fn swap_fee() -> sp_runtime::Perbill {
unimplemented!()
}
fn lp_id(_asset_a: Self::AssetId, _asset_b: Self::AssetId) -> Self::AssetId {
unimplemented!()
}
fn create_liquidity_pool(
_who: Self::AccountId,
_asset_a: Self::AssetId,
_asset_b: Self::AssetId,
_amount_a: Self::AssetBalance,
_amount_b: Self::AssetBalance,
) -> DispatchResult {
unimplemented!()
}
fn add_liquidity(
_who: Self::AccountId,
_asset_a: Self::AssetId,
_asset_b: Self::AssetId,
_amount_a: Self::AssetBalance,
_amount_b: Self::AssetBalance,
) -> DispatchResult {
unimplemented!()
}
fn remove_liquidity(
_who: Self::AccountId,
_asset_a: Self::AssetId,
_asset_b: Self::AssetId,
_token_amount: Self::AssetBalance,
) -> DispatchResult {
unimplemented!()
}
fn swap_exact_in_for_out(
_who: Self::AccountId,
_asset_in: Self::AssetId,
_asset_out: Self::AssetId,
_exact_in: Self::AssetBalance,
_min_out: Self::AssetBalance,
) -> DispatchResult {
unimplemented!()
}
fn swap_in_for_exact_out(
_origin: Self::AccountId,
_asset_in: Self::AssetId,
_asset_out: Self::AssetId,
_max_in: Self::AssetBalance,
_exact_out: Self::AssetBalance,
) -> DispatchResult {
unimplemented!()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment