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

[TALENT] As a user with an EVM Wallet who wants to Buy/Sell on Paloma, I want a bot to complete my trades #2523

Open
taariq opened this issue Jan 21, 2025 · 9 comments
Assignees
Labels
AI-AMM Talent Paloma's Got Talent

Comments

@taariq
Copy link
Member

taariq commented Jan 21, 2025

As a user with an EVM Wallet who wants to Buy/Sell on Paloma, I want a Paloma bot to complete my trades so that I can BUY/SELL and trade without a Paloma wallet.

Requirements

  1. Alice must complete the following steps on the EVM
    a. Alice will choose an EVM token to swap to buy Paloma token
    b. Token is swapped on Uniswap to USDT
    c. Bonding curve vyper contract receives user's token and swap it into USDT on Uniswap v3.
    d. And it deposits USDT to PUSD manager.
    e. PUSD manager doesn't interact with bonding curve directly
    f. The PUSD manager sends PUSD to Paloma bonding curve bot Cosmwasm contract
    g. The bonding curve bot cw will buy token using the pusd and by interacting with bonding curve cw.
    h. After that, the bonding curve bot cw will send the bought token to user's evm wallet using skyway bridge.

Note: PUSD manager module works as PUSD minting only. And bonding curve bot module interacts with PUSD manager and bonding curve cw.

@taariq taariq added AI-AMM Talent Paloma's Got Talent labels Jan 21, 2025
@verabehr
Copy link

After swap is complete from token to USDT on EVM, Alice receives minted PUSD on her EVM Wallet from the Paloma skyway bridge

Where does this swap happen? @taariq

@taariq
Copy link
Member Author

taariq commented Jan 21, 2025

After swap is complete from token to USDT on EVM, Alice receives minted PUSD on her EVM Wallet from the Paloma skyway bridge

Where does this swap happen? @taariq

Good question. @webelf101 let's do the swap on Uniswap.

@webelf101
Copy link

@taariq Should I receive PUSD on EVM and send back to Paloma and buy the token on Bonding Curve again? How about buy the token on Paloma directly without sending PUSD on EVM and get back to Paloma and buy the Bonding Curve token again?

@taariq
Copy link
Member Author

taariq commented Jan 23, 2025

@webelf101 if we assume that all our users have no Paloma address, how will we do as you propose and. maintain non custodial control?

@webelf101
Copy link

PUSD should go to our CW. Even though we are going to send PUSD to Skyway bridge, PUSD should go to CW.
If we want to send PUSD on EVM and get back, the toke flow needs to go PUSD_manager -> bot-cw -> skyway_bridge -> user's evm wallet -> skyway_bridge -> bot-cw -> bonding-curve -> bot-cw -> skyway_bridge -> user's evm wallet. But if we don't send PUSD to user's evm wallet, the token flow will be PUSD-manager -> bot-cw -> bonding-curve -> bot-cw -> skyway-bridge -> user's evm wallet. Does this make sense? @taariq

@taariq
Copy link
Member Author

taariq commented Jan 23, 2025

@webelf101 This makes sense as long as the Paloma maintains NO custodial holding of the users PUSD on Volume's servers. So the PUSD manager will trade directly with the bonding curve and the bot will send the user's resulting tokens to their evm wallet. Did I reflect correctly?

@webelf101
Copy link

@taariq No, actually, bonding curve vyper contract receives user's token and swap it into USDT on Uniswap v3. And it deposits USDT to PUSD manager. PUSD manager doesn't interact with bonding curve directly but the manager sends PUSD to bonding curve bot CW. and the bonding curve bot cw will buy token using pusd by interacting with bonding curve cw. After that, the bonding curve bot cw will send the bought token to user's evm wallet using skyway bridge.
As a conclusion, PUSD manager module works as PUSD minting only. And bonding curve bot module interacts with PUSD manager and bonding curve cw. Without modularization, the features and logics will be too complex and buggy.
Does this make sense?

@taariq
Copy link
Member Author

taariq commented Jan 23, 2025

@webelf101 I agree and I am aligned with your proposed approach.

@taariq
Copy link
Member Author

taariq commented Jan 23, 2025

@webelf101 requirements updated as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI-AMM Talent Paloma's Got Talent
Projects
None yet
Development

No branches or pull requests

3 participants