tx · 5SLnfFroX3g1RpLzwngz5kfweBEfAUfLxNCo2aYvCGQ4 3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD: -0.00200000 Waves 2022.07.17 22:05 [2144150] smart account 3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD > SELF 0.00000000 Waves
{ "type": 13, "id": "5SLnfFroX3g1RpLzwngz5kfweBEfAUfLxNCo2aYvCGQ4", "fee": 200000, "feeAssetId": null, "timestamp": 1658084747977, "version": 2, "chainId": 84, "sender": "3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD", "senderPublicKey": "CU5wMqCBg4bC4Zgs8QGiqjjvmeMkSiKo3Ff6k5axJZwr", "proofs": [ "2J4ScCibCYgmqN8cYe24TTgcBDfgYb9qvaGd5bn338ciLw8TLxnV2S7vSvJJZ4ynerFYkifzqZUN4Jnd8Hi6jFqu" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEBEgMKAQESBAoCCAgAAAADAAAAAAVnd1VzZAEAAAAg1td3yV5SV/9sTRnPub7Z/8+5gW83ZtDAi9MIvEJ2JY0AAAAABHVzZG4BAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AAAAAAh1c2RuRGFwcAEAAAAaAVT7q+pZTRYABtbI5go6O3BawJgjgnJaTVUAAAADAAAAAWkBAAAAD3N3YXBHR3VzZFRvVXNkbgAAAAEAAAAGYW1vdW50BAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAABWd3VXNkCQAAAgAAAAECAAAAKU9ubHkgZ3dVc2QgdG9rZW4gaXMgYWxsb3dlZCBmb3Igc3dhcHBpbmcuBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRt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N0YWtpbmcuBAAAAANyZXMJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM05Dcm9LeHBDV0NZaWp3amlWQmc2aGMyVDdEYWFqckh1QnICAAAAA3B1dAUAAAADbmlsCAUAAAABaQAAAAhwYXltZW50cwMJAAAAAAAAAgUAAAADcmVzBQAAAANyZXMEAAAAByRtYXRjaDAFAAAAA3JlcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFyBQAAAAckbWF0Y2gwCQAFFAAAAAIFAAAAA25pbAAAAAAAAAAAAAkAAAIAAAABAgAAABdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAdt1g9g==", "height": 2144150, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ATJR3482b65oLU5raMZ3jQcS4kFteSJDLSxMnUm482GY Next: 8HgrQxygZkkRKMFjqVaFeyfJywbokMqoaxpoyMK5XZKC Diff:
Old | New | Differences | |
---|---|---|---|
64 | 64 | if ($isInstanceOf(i, "Int")) | |
65 | 65 | then { | |
66 | 66 | let n = i | |
67 | - | $Tuple2(nil, | |
67 | + | $Tuple2(nil, 0) | |
68 | 68 | } | |
69 | 69 | else throw("Incorrect invoke result") | |
70 | 70 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'FTeosv2BmZED7kBcGnqDy9tba1VdkeodQveSAATMQusJ' | |
5 | 5 | ||
6 | 6 | let b = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
7 | 7 | ||
8 | 8 | let c = base58'3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr' | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func swapGGusdToUsdn (e) = { | |
12 | 12 | let f = value(d.payments[0]) | |
13 | 13 | if ((f.assetId != a)) | |
14 | 14 | then throw("Only gwUsd token is allowed for swapping.") | |
15 | 15 | else { | |
16 | 16 | let g = toBase58String(d.caller.bytes) | |
17 | 17 | let h = { | |
18 | 18 | let i = getInteger(this, g) | |
19 | 19 | if ($isInstanceOf(i, "Int")) | |
20 | 20 | then { | |
21 | 21 | let j = i | |
22 | 22 | j | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | [ScriptTransfer(d.caller, e, b)] | |
27 | 27 | } | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(d) | |
33 | 33 | func swapUsdnToGGusd (e) = { | |
34 | 34 | let f = value(d.payments[0]) | |
35 | 35 | if ((f.assetId != b)) | |
36 | 36 | then throw("Only usdn token is allowed for swapping.") | |
37 | 37 | else { | |
38 | 38 | let g = toBase58String(d.caller.bytes) | |
39 | 39 | let h = { | |
40 | 40 | let i = getInteger(this, g) | |
41 | 41 | if ($isInstanceOf(i, "Int")) | |
42 | 42 | then { | |
43 | 43 | let j = i | |
44 | 44 | j | |
45 | 45 | } | |
46 | 46 | else 0 | |
47 | 47 | } | |
48 | 48 | [ScriptTransfer(d.caller, e, a)] | |
49 | 49 | } | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(d) | |
55 | 55 | func putUsdnLp (k,l) = { | |
56 | 56 | let f = value(d.payments[0]) | |
57 | 57 | if ((f.assetId != b)) | |
58 | 58 | then throw("Only usdn token is allowed for staking.") | |
59 | 59 | else { | |
60 | 60 | let m = invoke(addressFromStringValue("3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr"), "put", nil, d.payments) | |
61 | 61 | if ((m == m)) | |
62 | 62 | then { | |
63 | 63 | let i = m | |
64 | 64 | if ($isInstanceOf(i, "Int")) | |
65 | 65 | then { | |
66 | 66 | let n = i | |
67 | - | $Tuple2(nil, | |
67 | + | $Tuple2(nil, 0) | |
68 | 68 | } | |
69 | 69 | else throw("Incorrect invoke result") | |
70 | 70 | } | |
71 | 71 | else throw("Strict value is not equal to itself.") | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 |
github/deemru/w8io/169f3d6 69.52 ms ◑