Skip to content

Instantly share code, notes, and snippets.

View chlenc's full-sized avatar
🌴
sway is the force

Alexey Nagorny chlenc

🌴
sway is the force
View GitHub Profile
# How to issue limit order on Waves using puzzleswap.org DEX SDK
# run this with your Ride code
let limitOrdersAddress = Address(base58'3PPrfNMnk8z8QhZcqMyJk69mF65s2Rbz3B6')
func getAssetBytes(assetIdStr: String) = {
if (assetIdStr == "WAVES") then {unit} else {assetIdStr.fromBase58String()}
}
# user says "im selling 1 PUZZLE for 18 USDN"
# token0 = PUZZLE, token1 = USDN