tx · DXzoptuEYy9ztdi1JdQdUswNYLumRT4jJcL8tUmz8n7d
3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq: -0.01000000 Waves
2023.10.02 15:54 [2781052] smart account 3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq > SELF 0.00000000 Waves
{
"type": 13,
"id": "DXzoptuEYy9ztdi1JdQdUswNYLumRT4jJcL8tUmz8n7d",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1696251345059,
"version": 2,
"chainId": 84,
"sender": "3N61RYWc9QuqKUwLvowpZZLpgUnqpQSFwLq",
"senderPublicKey": "HdwFH8HPYu3HG27yK6bszu1CdR4uik4HgzyTimeSfcYf",
"proofs": [
"3EVS2e6T4aaNK5d3LBTZokWJSh7kLd8ymvi6GWDSugotqvFkeWSYTYkBgPpFTDHb2NpXyoM9M5DJrqLow4xvMQdU"
],
"script": "base64:BgIKCAISBgoECAEIAQIAA1NFUAICX18BCmtleUJhbGFuY2UBB2Fzc2V0SWQJALkJAgkAzAgCAgQlcyVzCQDMCAICA2JhbAkAzAgCBQdhc3NldElkBQNuaWwFA1NFUAEBaQEDcHV0BA1hbW91bnRBc3NldElkEWFtb3VudEFzc2V0QW1vdW50DHByaWNlQXNzZXRJZBBwcmljZUFzc2V0QW1vdW50BAtwb29sQWRkcmVzcwgFAWkGY2FsbGVyBAZyZXN1bHQJAMwIAgkA/AcEBQtwb29sQWRkcmVzcwIMaW50ZWdlckVudHJ5CQDMCAIJAQprZXlCYWxhbmNlAQUNYW1vdW50QXNzZXRJZAkAzAgCBRFhbW91bnRBc3NldEFtb3VudAUDbmlsBQNuaWwJAMwIAgkA/AcEBQtwb29sQWRkcmVzcwIMaW50ZWdlckVudHJ5CQDMCAIJAQprZXlCYWxhbmNlAQUMcHJpY2VBc3NldElkCQDMCAIFEHByaWNlQXNzZXRBbW91bnQFA25pbAUDbmlsBQNuaWwDCQAAAgUGcmVzdWx0BQZyZXN1bHQJAJQKAgUDbmlsBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AGXWr9w==",
"height": 2781052,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: H881PQQk4eccU7b7L2E2paS1W8jTwScQD5TcEjeBPjwz
Next: BXjnq6WGEmsAtWV4ZdkCro6t1a2SdQxpkenhiycYo5yw
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let SEP = "__" |
---|
5 | 5 | | |
---|
6 | | - | func keyBalance (assetId) = makeString(["%s%", "bal", assetId], SEP) |
---|
| 6 | + | func keyBalance (assetId) = makeString(["%s%s", "bal", assetId], SEP) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | @Callable(i) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let SEP = "__" |
---|
5 | 5 | | |
---|
6 | | - | func keyBalance (assetId) = makeString(["%s%", "bal", assetId], SEP) |
---|
| 6 | + | func keyBalance (assetId) = makeString(["%s%s", "bal", assetId], SEP) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | @Callable(i) |
---|
10 | 10 | | func put (amountAssetId,amountAssetAmount,priceAssetId,priceAssetAmount) = { |
---|
11 | 11 | | let poolAddress = i.caller |
---|
12 | 12 | | let result = [invoke(poolAddress, "integerEntry", [keyBalance(amountAssetId), amountAssetAmount], nil), invoke(poolAddress, "integerEntry", [keyBalance(priceAssetId), priceAssetAmount], nil)] |
---|
13 | 13 | | if ((result == result)) |
---|
14 | 14 | | then $Tuple2(nil, nil) |
---|
15 | 15 | | else throw("Strict value is not equal to itself.") |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|