{"id":36437803,"url":"https://github.com/efficacy-finance/kriya-dex-interface","last_synced_at":"2026-01-18T13:00:30.106Z","repository":{"id":225326383,"uuid":"765594910","full_name":"efficacy-finance/kriya-dex-interface","owner":"efficacy-finance","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-02T15:30:13.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-03-03T13:20:32.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Move","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/efficacy-finance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-01T08:30:12.000Z","updated_at":"2024-03-03T13:20:32.152Z","dependencies_parsed_at":"2024-03-01T13:20:10.896Z","dependency_job_id":"bfd66bd1-76ca-4276-bf87-46da65084754","html_url":"https://github.com/efficacy-finance/kriya-dex-interface","commit_stats":null,"previous_names":["efficacy-finance/kriya-dex-interface"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/efficacy-finance/kriya-dex-interface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficacy-finance%2Fkriya-dex-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficacy-finance%2Fkriya-dex-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficacy-finance%2Fkriya-dex-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficacy-finance%2Fkriya-dex-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efficacy-finance","download_url":"https://codeload.github.com/efficacy-finance/kriya-dex-interface/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efficacy-finance%2Fkriya-dex-interface/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28536686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-11T20:00:22.343Z","updated_at":"2026-01-18T13:00:30.099Z","avatar_url":"https://github.com/efficacy-finance.png","language":"Move","funding_links":[],"categories":["**6\\. Detailed Data Tables of Financial Projects**"],"sub_categories":["**Table 1: Sui Ecosystem Financial Projects**"],"readme":"# Kriya AMM interface\n\nThis document provides guidance on integrating the Kriya AMM contract.\n\n## Deployed addresses\n\n| Network | Latest published at address                                        |\n| ------- | ------------------------------------------------------------------ |\n| mainnet | 0xa0eba10b173538c8fecca1dff298e488402cc9ff374f8a12ca7758eebe830b66 |\n| testnet | 0xb5722117aec83525c71f84c31c1f28e29397feffa95c99cce72a150a555a63dd |\n\n## Kriya protocol\n\nThis document will provide a comprehensive overview of the core features integral to the functionality of the Kriya AMM Interface.\n\n### Structs\n\n1. LP Token\n\n```rust\nstruct KriyaLPToken\u003cphantom X, phantom Y\u003e has key, store {\n    id: UID,\n    pool_id: ID,\n    lsp: Coin\u003cLSP\u003cX, Y\u003e\u003e\n}\n\n```\n\n2. Pool\n\n```rust\n\n/// Kriya AMM Pool object.\nstruct Pool\u003cphantom X, phantom Y\u003e has key {\n    id: UID,\n    /// Balance of Coin\u003cY\u003e in the pool.\n    token_y: Balance\u003cY\u003e,\n    /// Balance of Coin\u003cX\u003e in the pool.\n    token_x: Balance\u003cX\u003e,\n    /// LP total supply share.\n    lsp_supply: Supply\u003cLSP\u003cX, Y\u003e\u003e,\n    /// Minimum required liquidity, non-withdrawable\n    lsp_locked: Balance\u003cLSP\u003cX, Y\u003e\u003e,\n    /// LP fee percent. Range[1-10000] (30 -\u003e 0.3% fee)\n    lp_fee_percent: u64,\n    /// Protocol fee percent. Range[1-10000] (30 -\u003e 0.3% fee)\n    protocol_fee_percent: u64,\n    /// Protocol fee pool to hold collected Coin\u003cX\u003e as fee.\n    protocol_fee_x: Balance\u003cX\u003e,\n    /// Protocol fee pool to hold collected Coin\u003cY\u003e as fee.\n    protocol_fee_y: Balance\u003cY\u003e,\n    /// If the pool uses the table_curve_formula\n    is_stable: bool,\n    /// 10^ Decimals of Coin\u003cX\u003e\n    scaleX: u64,\n    /// 10^ Decimals of Coin\u003cY\u003e\n    scaleY: u64,\n    /// if trading is active for this pool\n    is_swap_enabled: bool,\n    /// if adding liquidity is enabled\n    is_deposit_enabled: bool,\n    /// if removing liquidity is enabled\n    is_withdraw_enabled: bool\n}\n\n```\n\n### Core Features Overview\n\n1. Create Pool\n\n- amm/sources/spot_dex.move\n\n```rust\n\n/// Creates pool with following arguments\npublic fun create_pool\u003cX, Y\u003e(\n    protocol_configs: \u0026ProtocolConfigs,\n    is_stable: bool,\n    coin_metadata_x: \u0026CoinMetadata\u003cX\u003e,\n    coin_metadata_y: \u0026CoinMetadata\u003cY\u003e,\n    ctx: \u0026mut TxContext\n): Pool\u003cX, Y\u003e {}\n\n```\n\n2. Add liquidity\n\n- amm/sources/spot_dex.move\n\n```rust\n\n/// Add liquidity to the `Pool`. Sender needs to provide both\n/// `Coin\u003cY\u003e` and `Coin\u003cX\u003e`, and in exchange he gets `Coin\u003cLSP\u003e` -\n/// liquidity provider tokens.\npublic fun add_liquidity\u003cX, Y\u003e(\n    pool: \u0026mut Pool\u003cX, Y\u003e,\n    token_y: Coin\u003cY\u003e,\n    token_x: Coin\u003cX\u003e,\n    token_y_amount: u64,\n    token_x_amount: u64,\n    amount_y_min_deposit: u64,\n    amount_x_min_deposit: u64,\n    ctx: \u0026mut TxContext\n): KriyaLPToken\u003cX, Y\u003e {}\n\n```\n\n3. Remove liquidity\n\n- amm/sources/spot_dex.move\n\n```rust\n\n/// Remove liquidity from the `Pool` by burning `Coin\u003cLSP\u003e`.\n/// Returns `Coin\u003cX\u003e` and `Coin\u003cY\u003e`.\npublic fun remove_liquidity\u003cX, Y\u003e(\n    pool: \u0026mut Pool\u003cX, Y\u003e,\n    lp_token: KriyaLPToken\u003cX, Y\u003e,\n    amount: u64,\n    ctx: \u0026mut TxContext\n): (Coin\u003cY\u003e, Coin\u003cX\u003e) {}\n\n```\n\n4. Swap X\n\n- amm/sources/spot_dex.move\n\n```rust\n\n/// Swap `Coin\u003cX\u003e` for the `Coin\u003cY\u003e`.\n/// Returns the swapped `Coin\u003cY\u003e`.\npublic fun swap_token_x\u003cX, Y\u003e(\n    pool: \u0026mut Pool\u003cX, Y\u003e, token_x: Coin\u003cX\u003e, amount: u64, min_recieve_y: u64, ctx: \u0026mut TxContext\n): Coin\u003cY\u003e {}\n\n```\n\n5. Swap Y\n\n- amm/sources/spot_dex.move\n\n```rust\n\n/// Swap `Coin\u003cY\u003e` for the `Coin\u003cX\u003e`.\n/// Returns Coin\u003cX\u003e.\npublic fun swap_token_y\u003cX, Y\u003e(\n    pool: \u0026mut Pool\u003cX, Y\u003e, token_y: Coin\u003cY\u003e, amount: u64, min_recieve_x: u64, ctx: \u0026mut TxContext\n): Coin\u003cX\u003e {}\n\n```\n\nchanges to move.toml to inlcude KriyaDEX as dependency.\n\n```\n[dependencies]\n...\nkriya_spot_dex = { git = \"https://github.com/efficacy-finance/kriya-dex-interface.git\", subdir = \"./\", rev = \"latest\", override = true }\n\n[addresses]\nkriya = \"0xe10f85f47c6d11f63e650aa7daf168c55ead9abb6da4227eba5dd5e4f8d890b1\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefficacy-finance%2Fkriya-dex-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefficacy-finance%2Fkriya-dex-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefficacy-finance%2Fkriya-dex-interface/lists"}