这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@fengtality
Copy link
Contributor

@fengtality fengtality commented Mar 12, 2025

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:

  • Add CLMM and AMM prefix to routes
  • Change Jupiter connector to new structure
  • Change Solana connector to new structure
  • Add test scripts

Tests performed by the developer:

Tips for QA testing:

rapcmia and others added 8 commits February 3, 2025 07:49
updated dockerfile and yarn.lock
sync / staging -> main for Hummingbot gateway version 2.3.0
Sync / Development to Staging for version 2.4.0
sync / Gateway staging -> main for Hummingbot gateway version 2.4.0
@fengtality fengtality changed the base branch from main to development March 12, 2025 13:56
@rapcmia rapcmia moved this to Under Review in Pull Request Board Mar 12, 2025
@fengtality fengtality marked this pull request as ready for review March 22, 2025 22:39
@rapcmia
Copy link
Contributor

rapcmia commented Mar 28, 2025

Test fbee5028ede5f7bb4e521adcde2240673fdcaf61

  • Run test on macOs using gateway start --passphrase=a --dev
  • GET/POST connectors, wallet and config ✅
  • GET/POST solana ✅

Meteora DLMM Endpoints

  • pool address 3H8reV51SedmYCiKmQp68wkAixVcNem1YepByHJWQnDh
  • GET fetch-pools, pool-info, position-info, quote-swap, quote-swap ✅
  • POST execute-swap, open-position, add-liquidity, remove-liquidity, collect-fees, close-position ✅
    • Swap ok
    • Position opened HH6QoDWAGWBXL8idRKk6VyYujmntS1UfDCJHBajxpyv3
    • Liquidity added ok
    • Remove liquidity 100% ok
    • Collecting fees ok
    • Position closed ok

Raydium CLMM endpoints

  • GET pool-info, position-owned, position-info, quote-swap and quote-position ✅
    • Concentrated pool 7XzVsjqTebULfkUofTDH5gDdZDmxacPmPuTfHa1n9kuh
  • POST execute-swap, open-position, add-liquidity, remove-liquidity, collect-fees ad close-position ✅
    • For quote-swap failing when placing buy to swap orders ❌
      }
      2025-03-27 18:16:02 | error | 	Transaction simulation failed:
      Error: {"InstructionError":[2,{"Custom":6023}]}
      Program Logs: Program ComputeBudget111111111111111111111111111111 invoke [1]
      Program ComputeBudget111111111111111111111111111111 success
      Program ComputeBudget111111111111111111111111111111 invoke [1]
      Program ComputeBudget111111111111111111111111111111 success
      Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK invoke [1]
      Program log: Instruction: SwapV2
      Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
      Program log: Instruction: TransferChecked
      Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 6200 of 535498 compute units
      Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
      Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
      Program log: Instruction: TransferChecked
      Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 6147 of 525325 compute units
      Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
      Program data: QMbN6CYIceJhFo8Ql5cWgxRO/qYDI3CPBb1GjwgQmvg1NgbH+LfeTOmVCHjGNvPk4kj1PgFyexvh9fWkbCPvoyCo58JloXJCFkS5fBPVnjfO27yfaakakRFSC/xQe9D6hljCoPv/yZbODz6aGXlZdgKW5Wm9xBAGhvcKZYROTFqFMrEfDyXIn+CTBAAAAAAAAAAAAAAAAAAhSzMAAAAAAAAAAAAAAAAAAKEf1YH6i+1XAwAAAAAAAABGaQyrAQAAAAAAAAAAAAAATV4AAA==
      Program log: AnchorError thrown in programs/amm/src/instructions/swap_v2.rs:359. Error Code: TooMuchInputPaid. Error Number: 6023. Error Message: Too much input paid.
      Program log: Left: 26913
      Program log: Right: 3361569
      Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK consumed 90651 of 599700 compute units
      Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK failed: custom program error: 0x1787 {
        "status": 503,
        "errorCode": 1024
      }
      
      • Amount use is 0.5 TRUMP equivalent to 5usd but error was Too much input paid.
    • Opened position ok, position address 3F3x2vtDLQmVxx1mcbDMU77FShoNvx7ENwn6daP8FNFS
    • Adding liqudity ok
    • Remove liquidity ok
    • Collect fees ok
    • Remove liqudity ok

logs_gateway_app.log.2025-03-28.log


Todo:

  • Raydium AMM/CPMM endpoints pending
  • Skipped Jupiter swap endpoints ✅

@fengtality
Copy link
Contributor Author

fengtality commented Mar 28, 2025

                        throw new Error(`${this.id} config file seems to be outdated/broken due to additional property "${err.params.additionalProperty}". Kindly fix manually.`);
                        ^

Error: raydium config file seems to be outdated/broken due to additional property "allowedSlippage". Kindly fix manually.
    at ConfigurationNamespace.loadConfig (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/config-manager-v2.js:88:31)
    at new ConfigurationNamespace (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/config-manager-v2.js:63:14)
    at ConfigManagerV2.addNamespace (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/config-manager-v2.js:213:32)
    at ConfigManagerV2.loadConfigRoot (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/config-manager-v2.js:277:18)
    at new ConfigManagerV2 (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/config-manager-v2.js:179:14)
    at ConfigManagerV2.getInstance (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/config-manager-v2.js:172:41)
    at getLogPath (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/logger.js:65:60)
    at Object.<anonymous> (/home/yawnyunehh/hummingbot/gateway/422/dist/src/services/logger.js:70:18)
    at Module._compile (node:internal/modules/cjs/loader:1368:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)

Node.js v21.7.3
(base) mangyawnako :: hummingbot/gateway/422b ‹core-2.5› » vr                                                                                                                                                                              1 ↵
commit fbee5028ede5f7bb4e521adcde2240673fdcaf61
Author: Michael Feng <mifeng@gmail.com>
Date:   Thu Mar 27 17:50:46 2025 -0700

    finalize pool address changes
```


    
      
    

      
    

    
  

* I tried to clone a fresh ver of this PR with [7491](https://github.com/hummingbot/hummingbot/pull/7491) but still failed same error

Steps to reproduce:

  1. Pull the latest or clone new copy of this PR
  2. Enter the cert address and gateway start --passphrase=a

i installed the latest commit on AWS Linux machine and didn't encounter the same issue. You might have an outdated Raydium config file?

@rapcmia
Copy link
Contributor

rapcmia commented Mar 28, 2025

i installed the latest commit on AWS Linux machine and didn't encounter the same issue. You might have an outdated Raydium config file?

ahh i deleted the comment, found the issue related to my setup. I was able to fix after purge all files related to the PR, reboot then fresh install again

@fengtality
Copy link
Contributor Author

@rapcmia the last commit should have resolved the TRUMP-USDC buy-swap issue. Now, you should be able to quote and execute buy swaps in any Raydium CLMM pair.

@rapcmia rapcmia merged commit 0474875 into development Apr 11, 2025
5 checks passed
@rapcmia rapcmia deleted the core-2.5 branch April 11, 2025 10:16
@rapcmia rapcmia moved this from Under Review to Development 2.5.0 in Pull Request Board Apr 11, 2025
@rapcmia rapcmia moved this from Staging 2.5.0 to Release 2.4.0 in Pull Request Board Apr 22, 2025
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.

4 participants