Skip to content

Commit

Permalink
add chain type to tinyman connector config
Browse files Browse the repository at this point in the history
  • Loading branch information
vic-en committed May 17, 2023
1 parent cbb1706 commit 1bd1380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/connectors/connectors.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export namespace ConnectorsRoutes {
{
name: 'tinyman',
trading_type: TinymanConfig.config.tradingTypes,
chain_type: TinymanConfig.config.chainType,
available_networks: TinymanConfig.config.availableNetworks,
},
],
Expand Down
4 changes: 3 additions & 1 deletion src/connectors/tinyman/tinyman.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ export namespace TinymanConfig {
export interface NetworkConfig {
allowedSlippage: string;
tradingTypes: Array<string>;
chainType: string;
availableNetworks: Array<AvailableNetworks>;
}

export const config: NetworkConfig = {
allowedSlippage: ConfigManagerV2.getInstance().get(
'tinyman.allowedSlippage'
),
tradingTypes: ['ALGORAND_AMM'],
tradingTypes: ['AMM'],
chainType: 'ALGORAND',
availableNetworks: [
{ chain: 'algorand', networks: ['mainnet', 'testnet'] },
],
Expand Down

0 comments on commit 1bd1380

Please sign in to comment.