mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-14 23:18:33 +03:00
Added deposit
This commit is contained in:
@@ -30,7 +30,7 @@ const wallet = new Wallet(privateKey);
|
||||
const orionUnit = initOrionUnit(chain, env);
|
||||
|
||||
// Make market swap
|
||||
orionUnit
|
||||
orionUnit.exchange
|
||||
.swapMarket({
|
||||
type: "exactSpend",
|
||||
assetIn: "ORN",
|
||||
@@ -153,7 +153,7 @@ orionUnit.orionAggregator.ws.subscribe(
|
||||
d: swapRequestId, // generated by client
|
||||
i: assetIn, // asset in
|
||||
o: assetOut, // asset out
|
||||
e: true, // true when type of swap is exactSpend, can be omitted (true bu default)
|
||||
e: true, // true when type of swap is exactSpend, can be omitted (true by default)
|
||||
a: 5.62345343, // amount
|
||||
},
|
||||
// Handle data update in your way
|
||||
|
||||
Reference in New Issue
Block a user