tx · 5NoygAmSxS6YCSeWJPjBQEgWT2wrW1myz6Yt7YdUHH3Q
3N3YZSmRdq9x5EgeziMo3frjzS92sSetxdJ: -0.01000000 Waves
2022.11.19 11:52 [2323780] smart account 3N3YZSmRdq9x5EgeziMo3frjzS92sSetxdJ > SELF 0.00000000 Waves
{
"type": 13,
"id": "5NoygAmSxS6YCSeWJPjBQEgWT2wrW1myz6Yt7YdUHH3Q",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1668847993018,
"version": 2,
"chainId": 84,
"sender": "3N3YZSmRdq9x5EgeziMo3frjzS92sSetxdJ",
"senderPublicKey": "EFnrjwCCDfBEcxdF1ZQjVvm8hFASxpXvTr3XbdoqivGr",
"proofs": [
"5bmPiWzNU4ojwMAMDP8CiqeyQiT5ZNWztRNVQ2uZfH2p76tNFWZeHSrwYG4yrZptW8na2JMiDNWAKkeXyzHyNoxK"
],
"script": "base64:BgIECAISAAMABFVTRE4BILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAA9kZWxlZ2F0ZUFkZHJlc3MJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOMUh6VWdrWlVvUVJzNDdRZnJCdWNXR0VEMTlSTFZtSGFqAA92ZXN0aW5nQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOOUF0dUVxdnNCWFpoVWZ3MTFaZW1oeUZiS1ZUVW85UGk0AQFpAQVjbGFpbQADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAg1BY2Nlc3MgRGVuaWVkBAt1c2RuSW5pdGlhbAkA8AcCBQR0aGlzBQRVU0ROAwkAAAIFC3VzZG5Jbml0aWFsBQt1c2RuSW5pdGlhbAQDaW52CQD8BwQFD3Zlc3RpbmdDb250cmFjdAIGdGVsbG1lCQDMCAICA3NkZgUDbmlsBQNuaWwDCQAAAgUDaW52BQNpbnYECXVzZG5GaW5hbAkA8AcCBQR0aGlzBQRVU0ROAwkAAAIFCXVzZG5GaW5hbAUJdXNkbkZpbmFsCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFD2RlbGVnYXRlQWRkcmVzcwUJdXNkbkZpbmFsBQRVU0ROBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQDaW52BQckbWF0Y2gwAwkAAAIJAKQIAQgFA2ludgRkQXBwBQR0aGlzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleY5fiMk=",
"height": 2323780,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6agHYj6akhAxmwexKZfPKqcjD3hnD2NrFobQy57yr68g
Next: CxwNZPSm6GW5F3hrRJxogFoBsur5RTSmT5ZzWoqWTgyS
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let USDC = base58'6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ' |
---|
5 | | - | |
---|
6 | | - | let USDT = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ' |
---|
7 | | - | |
---|
8 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
9 | 5 | | |
---|
10 | | - | let viresUsdcAddress = base58'3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S' |
---|
| 6 | + | let delegateAddress = addressFromStringValue("3N1HzUgkZUoQRs47QfrBucWGED19RLVmHaj") |
---|
11 | 7 | | |
---|
12 | | - | let viresUsdtAddress = base58'3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR' |
---|
13 | | - | |
---|
14 | | - | let usdcLp = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr' |
---|
15 | | - | |
---|
16 | | - | let delegateAddress = addressFromStringValue("3P5ph4LDJwXouaZPjnqGTNtogbm4Z1dy7dY") |
---|
17 | | - | |
---|
18 | | - | let viresMain = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT") |
---|
19 | | - | |
---|
20 | | - | let vestingContract = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk") |
---|
| 8 | + | let vestingContract = addressFromStringValue("3N9AtuEqvsBXZhUfw11ZemhyFbKVTUo9Pi4") |
---|
21 | 9 | | |
---|
22 | 10 | | @Callable(i) |
---|
23 | 11 | | func claim () = if ((i.caller != this)) |
---|
|
26 | 14 | | let usdnInitial = assetBalance(this, USDN) |
---|
27 | 15 | | if ((usdnInitial == usdnInitial)) |
---|
28 | 16 | | then { |
---|
29 | | - | let inv = invoke(vestingContract, "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 17 | + | let inv = invoke(vestingContract, "tellme", ["sdf"], nil) |
---|
30 | 18 | | if ((inv == inv)) |
---|
31 | 19 | | then { |
---|
32 | 20 | | let usdnFinal = assetBalance(this, USDN) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let USDC = base58'6XtHjpXbs9RRJP2Sr9GUyVqzACcby9TkThHXnjVC5CDJ' |
---|
5 | | - | |
---|
6 | | - | let USDT = base58'34N9YcEETLWn93qYQ64EsP1x89tSruJU44RrEMSXXEPJ' |
---|
7 | | - | |
---|
8 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
9 | 5 | | |
---|
10 | | - | let viresUsdcAddress = base58'3PGCkrHBxFMi7tz1xqnxgBpeNvn5E4M4g8S' |
---|
| 6 | + | let delegateAddress = addressFromStringValue("3N1HzUgkZUoQRs47QfrBucWGED19RLVmHaj") |
---|
11 | 7 | | |
---|
12 | | - | let viresUsdtAddress = base58'3PEiD1zJWTMZNWSCyzhvBw9pxxAWeEwaghR' |
---|
13 | | - | |
---|
14 | | - | let usdcLp = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr' |
---|
15 | | - | |
---|
16 | | - | let delegateAddress = addressFromStringValue("3P5ph4LDJwXouaZPjnqGTNtogbm4Z1dy7dY") |
---|
17 | | - | |
---|
18 | | - | let viresMain = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT") |
---|
19 | | - | |
---|
20 | | - | let vestingContract = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk") |
---|
| 8 | + | let vestingContract = addressFromStringValue("3N9AtuEqvsBXZhUfw11ZemhyFbKVTUo9Pi4") |
---|
21 | 9 | | |
---|
22 | 10 | | @Callable(i) |
---|
23 | 11 | | func claim () = if ((i.caller != this)) |
---|
24 | 12 | | then throw("Access Denied") |
---|
25 | 13 | | else { |
---|
26 | 14 | | let usdnInitial = assetBalance(this, USDN) |
---|
27 | 15 | | if ((usdnInitial == usdnInitial)) |
---|
28 | 16 | | then { |
---|
29 | | - | let inv = invoke(vestingContract, "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 17 | + | let inv = invoke(vestingContract, "tellme", ["sdf"], nil) |
---|
30 | 18 | | if ((inv == inv)) |
---|
31 | 19 | | then { |
---|
32 | 20 | | let usdnFinal = assetBalance(this, USDN) |
---|
33 | 21 | | if ((usdnFinal == usdnFinal)) |
---|
34 | 22 | | then [ScriptTransfer(delegateAddress, usdnFinal, USDN)] |
---|
35 | 23 | | else throw("Strict value is not equal to itself.") |
---|
36 | 24 | | } |
---|
37 | 25 | | else throw("Strict value is not equal to itself.") |
---|
38 | 26 | | } |
---|
39 | 27 | | else throw("Strict value is not equal to itself.") |
---|
40 | 28 | | } |
---|
41 | 29 | | |
---|
42 | 30 | | |
---|
43 | 31 | | @Verifier(tx) |
---|
44 | 32 | | func verify () = match tx { |
---|
45 | 33 | | case inv: InvokeScriptTransaction => |
---|
46 | 34 | | if ((addressFromRecipient(inv.dApp) == this)) |
---|
47 | 35 | | then true |
---|
48 | 36 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
49 | 37 | | case _ => |
---|
50 | 38 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
51 | 39 | | } |
---|
52 | 40 | | |
---|