tx · Eunc5NKseW3ohu4UiRwQD4EMjP78Sas5hG22ZPJFtwsu
3MpgiJtw8xovoBzg9Y9JhRNTvg5Ys5tpghs: -0.01000000 Waves
2022.09.24 12:26 [2243038] smart account 3MpgiJtw8xovoBzg9Y9JhRNTvg5Ys5tpghs > SELF 0.00000000 Waves
{
"type": 13,
"id": "Eunc5NKseW3ohu4UiRwQD4EMjP78Sas5hG22ZPJFtwsu",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1664011566909,
"version": 2,
"chainId": 84,
"sender": "3MpgiJtw8xovoBzg9Y9JhRNTvg5Ys5tpghs",
"senderPublicKey": "ujYfhumJWc449GG2d9ZEJWTWKjkXxKKSJQmPLqJuXcP",
"proofs": [
"5ezZm8kEngDyn18sijWqaYrp4iXABvD5bf8nbZwfgfwxYKPcSsfXUduMcsbAdHk2szF9NCktWbQXbX61Gs9JeD5H"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAAACW1lQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBV3GrzGDEdHgNA5CKBV+xUcCDKxT0be8i8wAAAAAMYWRtaW5BZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvhuxU1jMn1zZ4f4UImyCnow4o+QNzDAwAAAAAQAAAAFpAQAAAAh1c2RuXzEwMAAAAAADCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAADGFkbWluQWRkcmVzcwkAAAIAAAABAgAAABFvbmx5IGFkbWluIGNhbiBkbwQAAAARdXNkbkFtb3VudE9uU3RhcnQJAAPwAAAAAgUAAAAEdGhpcwUAAAAEVVNETgMJAAAAAAAAAgUAAAARdXNkbkFtb3VudE9uU3RhcnQFAAAAEXVzZG5BbW91bnRPblN0YXJ0BAAAABJpbnZva2VJbXBvcnRVc2RjTHAJAAP8AAAABAkBAAAAEUBleHRy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pcyBub3QgZXF1YWwgdG8gaXRzZWxmLiAtIDQJAAACAAAAAQIAAAAoU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuIC0gMwkAAAIAAAABAgAAAChTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4gLSAyCQAAAgAAAAECAAAAKFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLiAtIDEAAAAALOLBww==",
"height": 2243038,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: F58mHMf8fT2gsFEihzWE88wpJESEuY3rvUocLM34mgvb
Next: 4arEKHrzartM1P871dF1yikp12CgF2sQpS6Rj2VVtFPs
Diff:
Old | New | | Differences |
---|
14 | 14 | | let e = assetBalance(this, a) |
---|
15 | 15 | | if ((e == e)) |
---|
16 | 16 | | then { |
---|
17 | | - | let f = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "convertToUSDN", nil, nil) |
---|
| 17 | + | let f = invoke(addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT"), "replenishWithAtoken", nil, d.payments) |
---|
18 | 18 | | if ((f == f)) |
---|
19 | 19 | | then { |
---|
20 | | - | let g = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 20 | + | let g = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "convertToUSDN", nil, nil) |
---|
21 | 21 | | if ((g == g)) |
---|
22 | 22 | | then { |
---|
23 | | - | let h = assetBalance(this, a) |
---|
| 23 | + | let h = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
24 | 24 | | if ((h == h)) |
---|
25 | | - | then [ScriptTransfer(b, h, a)] |
---|
26 | | - | else throw("Strict value is not equal to itself.") |
---|
| 25 | + | then { |
---|
| 26 | + | let i = assetBalance(this, a) |
---|
| 27 | + | if ((i == i)) |
---|
| 28 | + | then [ScriptTransfer(b, i, a)] |
---|
| 29 | + | else throw("Strict value is not equal to itself. - 5") |
---|
| 30 | + | } |
---|
| 31 | + | else throw("Strict value is not equal to itself. - 4") |
---|
27 | 32 | | } |
---|
28 | | - | else throw("Strict value is not equal to itself.") |
---|
| 33 | + | else throw("Strict value is not equal to itself. - 3") |
---|
29 | 34 | | } |
---|
30 | | - | else throw("Strict value is not equal to itself.") |
---|
| 35 | + | else throw("Strict value is not equal to itself. - 2") |
---|
31 | 36 | | } |
---|
32 | | - | else throw("Strict value is not equal to itself.") |
---|
| 37 | + | else throw("Strict value is not equal to itself. - 1") |
---|
33 | 38 | | } |
---|
34 | 39 | | |
---|
35 | 40 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = Address(base58'3PCHvtgW5EJ5KPbpWPXSj7FARoQaYzLG6g2') |
---|
7 | 7 | | |
---|
8 | 8 | | let c = Address(base58'3N7FHLVLLNL1BozP9uiE8eZosS9nWfprFEo') |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(d) |
---|
11 | 11 | | func usdn_100 () = if ((d.caller != c)) |
---|
12 | 12 | | then throw("only admin can do") |
---|
13 | 13 | | else { |
---|
14 | 14 | | let e = assetBalance(this, a) |
---|
15 | 15 | | if ((e == e)) |
---|
16 | 16 | | then { |
---|
17 | | - | let f = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "convertToUSDN", nil, nil) |
---|
| 17 | + | let f = invoke(addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT"), "replenishWithAtoken", nil, d.payments) |
---|
18 | 18 | | if ((f == f)) |
---|
19 | 19 | | then { |
---|
20 | | - | let g = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 20 | + | let g = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "convertToUSDN", nil, nil) |
---|
21 | 21 | | if ((g == g)) |
---|
22 | 22 | | then { |
---|
23 | | - | let h = assetBalance(this, a) |
---|
| 23 | + | let h = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
24 | 24 | | if ((h == h)) |
---|
25 | | - | then [ScriptTransfer(b, h, a)] |
---|
26 | | - | else throw("Strict value is not equal to itself.") |
---|
| 25 | + | then { |
---|
| 26 | + | let i = assetBalance(this, a) |
---|
| 27 | + | if ((i == i)) |
---|
| 28 | + | then [ScriptTransfer(b, i, a)] |
---|
| 29 | + | else throw("Strict value is not equal to itself. - 5") |
---|
| 30 | + | } |
---|
| 31 | + | else throw("Strict value is not equal to itself. - 4") |
---|
27 | 32 | | } |
---|
28 | | - | else throw("Strict value is not equal to itself.") |
---|
| 33 | + | else throw("Strict value is not equal to itself. - 3") |
---|
29 | 34 | | } |
---|
30 | | - | else throw("Strict value is not equal to itself.") |
---|
| 35 | + | else throw("Strict value is not equal to itself. - 2") |
---|
31 | 36 | | } |
---|
32 | | - | else throw("Strict value is not equal to itself.") |
---|
| 37 | + | else throw("Strict value is not equal to itself. - 1") |
---|
33 | 38 | | } |
---|
34 | 39 | | |
---|
35 | 40 | | |
---|