Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Fix spot order #46

Merged
merged 2 commits into from
Nov 25, 2023
Merged

Fix spot order #46

merged 2 commits into from
Nov 25, 2023

Conversation

politeWall
Copy link
Contributor

No description provided.

@politeWall politeWall marked this pull request as ready for review November 25, 2023 11:51
sleep 2
addr=$(extract_contract_address elysd q tx $instantiate_hash)
# elysd q wasm contract-state smart $addr '{"get_all_prices": {}}'
sleep 2
elysd tx amm create-pool 100uatom,100uusdc 100000000000uatom,100000000000uusdc --swap-fee=0.00 --exit-fee=0.00 --use-oracle=false --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000
sleep 2
elysd tx wasm exec $addr '{"create_spot_order": {"order_amm_routes" : [{"pool_id" : 1 , "token_out_denom" : "uatom"}], "order_price" : {"base_denom": "uusdc","quote_denom" : "uatom" ,"rate" : "1"}, "order_type" : "stop_loss", "order_target_denom" : "uatom", "order_source_denom" : "uusdc"}}' --from treasury --gas-prices 0.25uelys --gas auto --gas-adjustment 1.3 -b sync -y --keyring-backend=test --chain-id=elystestnet-1 --amount=200uusdc
elysd tx wasm exec $addr '{"create_spot_order": { "order_price" : {"base_denom": "uusdc","quote_denom" : "uatom" ,"rate" : "1"}, "order_type" : "stop_loss", "order_target_denom" : "uatom", "order_source_denom" : "uusdc"}}' --from treasury --gas-prices 0.25uelys --gas auto --gas-adjustment 1.3 -b sync -y --keyring-backend=test --chain-id=elystestnet-1 --amount=200uusdc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@politeWall why do you still use order_source_denom does it mean it is still needed?

@cosmic-vagabond cosmic-vagabond merged commit 3beb612 into main Nov 25, 2023
1 check passed
@cosmic-vagabond cosmic-vagabond deleted the fix-spot-order branch November 25, 2023 11:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants