tx · 7WEWb7pEkqAUT6S8Ddy8aTRC1pPoJQdDpEwg96tBgBZR

3PNixXRpaBngijBdNmKe3VHJKwD6PatDZX4:  -0.00200000 Waves

2022.12.21 07:21 [3435032] smart account 3PNixXRpaBngijBdNmKe3VHJKwD6PatDZX4 > SELF 0.00000000 Waves

{ "type": 13, "id": "7WEWb7pEkqAUT6S8Ddy8aTRC1pPoJQdDpEwg96tBgBZR", "fee": 200000, "feeAssetId": null, "timestamp": 1671596555821, "version": 1, "sender": "3PNixXRpaBngijBdNmKe3VHJKwD6PatDZX4", "senderPublicKey": "2d499SNJhrHLMh6Jjn4L2gFbZZ9jz81ta6Y8EaWZAf3S", "proofs": [ "5UtpZWdYGspTEEPSW33X35jwecyhVVx1SdrsLzuC8dGVCPr7kDJ8jKFSGkFU3gheTnBtSTWwTk86Pv1nF2DKjcjh" ], "script": "base64:BgKGAQgCEgASABIAIgRVU0ROIg1DbGFpbXNSZXdhcmRzIgdWZXN0aW5nIg9kZWxlZ2F0ZUFkZHJlc3MiDGFkbWluQWRkcmVzcyIBaSIDaW52Igt1c2RuSW5pdGlhbCIJdXNkbkZpbmFsIgpVU0ROUmV3YXJkIgJ0eCIGdmVyaWZ5IgckbWF0Y2gwBQABYQEgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAWIJAQdBZGRyZXNzAQEaAVfBck6YPz0QEz8ItSgBixhYcdv0PaqHx2QAAWMJAQdBZGRyZXNzAQEaAVd1Et2Tgg9b3iV2FTnLSdUfUygJxOhxXicAAWQJAQdBZGRyZXNzAQEaAVeCseCv9O4DBvfUEsqcCwjlU9tmnjqUogUAAWUJAQdBZGRyZXNzAQEaAVcULU/ulWtOLv6M9qfqEp7osy/PzlmN64UDAWYBAnZ2AAMDCQAAAggFAWYGY2FsbGVyBQR0aGlzBgkAAAIIBQFmBmNhbGxlcgUBZQQBZwkA/AcEBQFjAhV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAMwIAgcJAMwIA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CCAUBawZwcm9vZnMAAAgFAWsPc2VuZGVyUHVibGljS2V5emEVbQ==", "chainId": 87, "height": 3435032, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2k1zKtvJEStgkeC7YiSW8fQr6oKSLT46Adk1NC6UsFW5 Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
6-let VIRES_USDT_LP = base58'2tVLdi5fQXk2JcuDAojhctnDp5B5PZhNMyj5GUpeC3tZ'
6+let ClaimsRewards = Address(base58'3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd')
77
8-let VIRES_USDC_LP = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
8+let Vesting = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
99
10-let ClaimsRewards = addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd")
10+let delegateAddress = Address(base58'3PDqwfLpLfmdsYvJrnT5wizggfzYt7XC7xY')
1111
12-let VIRES = base58'DSbbhLsSTeDg5Lsiufk2Aneh3DjVqJuPr2M9uU1gwy5p'
13-
14-let Vesting = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk")
15-
16-let viresMain = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
17-
18-let delegateAddress = addressFromStringValue("3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc")
12+let adminAddress = Address(base58'3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc')
1913
2014 @Callable(i)
21-func cvw () = if ((i.caller != this))
22- then throw("Access Denied")
23- else {
24- let lpBalance = assetBalance(this, VIRES_USDC_LP)
25- if ((lpBalance == lpBalance))
26- then {
27- let usdnAmountOnStart = assetBalance(this, USDN)
28- if ((usdnAmountOnStart == usdnAmountOnStart))
29- then {
30- let invokeConvert = invoke(Vesting, "convertToUSDN", nil, nil)
31- if ((invokeConvert == invokeConvert))
32- then {
33- let invVested = invoke(Vesting, "withdrawVestedAllUSDN", [false, true], nil)
34- if ((invVested == invVested))
35- then {
36- let usdnAmountAfterVested = assetBalance(this, USDN)
37- if ((usdnAmountAfterVested == usdnAmountAfterVested))
38- then [ScriptTransfer(delegateAddress, usdnAmountAfterVested, USDN)]
39- else throw("Strict value is not equal to itself.")
40- }
41- else throw("Strict value is not equal to itself.")
42- }
43- else throw("Strict value is not equal to itself.")
44- }
45- else throw("Strict value is not equal to itself.")
46- }
47- else throw("Strict value is not equal to itself.")
48- }
49-
50-
51-
52-@Callable(i)
53-func v () = if ((i.caller != this))
54- then throw("Access Denied")
55- else {
15+func vv () = if (if ((i.caller == this))
16+ then true
17+ else (i.caller == adminAddress))
18+ then {
5619 let inv = invoke(Vesting, "withdrawVestedAllUSDN", [false, true], nil)
5720 if ((inv == inv))
5821 then nil
5922 else throw("Strict value is not equal to itself.")
6023 }
24+ else throw("Access Denied")
6125
6226
6327
6428 @Callable(i)
65-func vw () = if ((i.caller != this))
66- then throw("Access Denied")
67- else {
29+func v () = if (if ((i.caller == this))
30+ then true
31+ else (i.caller == adminAddress))
32+ then {
6833 let usdnInitial = assetBalance(this, USDN)
6934 if ((usdnInitial == usdnInitial))
7035 then {
8045 }
8146 else throw("Strict value is not equal to itself.")
8247 }
48+ else throw("Access Denied")
8349
8450
8551
8652 @Callable(i)
87-func ic (amount) = if ((i.caller != this))
88- then throw("Access Denied")
89- else {
90- let inv = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(VIRES_USDC_LP, amount)])
91- if ((inv == inv))
92- then nil
93- else throw("Strict value is not equal to itself.")
94- }
95-
96-
97-
98-@Callable(i)
99-func it (amount) = if ((i.caller != this))
100- then throw("Access Denied")
101- else {
102- let inv = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(VIRES_USDT_LP, amount)])
103- if ((inv == inv))
104- then nil
105- else throw("Strict value is not equal to itself.")
106- }
107-
108-
109-
110-@Callable(i)
111-func ClaimRewardsUSDN () = if ((i.caller != this))
112- then throw("Access Denied")
113- else {
53+func ClaimRewardsUSDN () = if (if ((i.caller == this))
54+ then true
55+ else (i.caller == adminAddress))
56+ then {
11457 let USDNReward = invoke(ClaimsRewards, "claimRewards", nil, nil)
11558 if ((USDNReward == USDNReward))
11659 then nil
11760 else throw("Strict value is not equal to itself.")
11861 }
62+ else throw("Access Denied")
11963
12064
12165 @Verifier(tx)
12266 func verify () = match tx {
12367 case inv: InvokeScriptTransaction =>
124- if ((addressFromRecipient(inv.dApp) == this))
68+ if (if ((addressFromRecipient(inv.dApp) == this))
69+ then (13000001 >= inv.fee)
70+ else false)
12571 then true
12672 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
12773 case _ =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
6-let VIRES_USDT_LP = base58'2tVLdi5fQXk2JcuDAojhctnDp5B5PZhNMyj5GUpeC3tZ'
6+let ClaimsRewards = Address(base58'3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd')
77
8-let VIRES_USDC_LP = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
8+let Vesting = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
99
10-let ClaimsRewards = addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd")
10+let delegateAddress = Address(base58'3PDqwfLpLfmdsYvJrnT5wizggfzYt7XC7xY')
1111
12-let VIRES = base58'DSbbhLsSTeDg5Lsiufk2Aneh3DjVqJuPr2M9uU1gwy5p'
13-
14-let Vesting = addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk")
15-
16-let viresMain = addressFromStringValue("3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT")
17-
18-let delegateAddress = addressFromStringValue("3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc")
12+let adminAddress = Address(base58'3P3maXS1yoBEvhbMTLBYHm2pAPeUSrfzDAc')
1913
2014 @Callable(i)
21-func cvw () = if ((i.caller != this))
22- then throw("Access Denied")
23- else {
24- let lpBalance = assetBalance(this, VIRES_USDC_LP)
25- if ((lpBalance == lpBalance))
26- then {
27- let usdnAmountOnStart = assetBalance(this, USDN)
28- if ((usdnAmountOnStart == usdnAmountOnStart))
29- then {
30- let invokeConvert = invoke(Vesting, "convertToUSDN", nil, nil)
31- if ((invokeConvert == invokeConvert))
32- then {
33- let invVested = invoke(Vesting, "withdrawVestedAllUSDN", [false, true], nil)
34- if ((invVested == invVested))
35- then {
36- let usdnAmountAfterVested = assetBalance(this, USDN)
37- if ((usdnAmountAfterVested == usdnAmountAfterVested))
38- then [ScriptTransfer(delegateAddress, usdnAmountAfterVested, USDN)]
39- else throw("Strict value is not equal to itself.")
40- }
41- else throw("Strict value is not equal to itself.")
42- }
43- else throw("Strict value is not equal to itself.")
44- }
45- else throw("Strict value is not equal to itself.")
46- }
47- else throw("Strict value is not equal to itself.")
48- }
49-
50-
51-
52-@Callable(i)
53-func v () = if ((i.caller != this))
54- then throw("Access Denied")
55- else {
15+func vv () = if (if ((i.caller == this))
16+ then true
17+ else (i.caller == adminAddress))
18+ then {
5619 let inv = invoke(Vesting, "withdrawVestedAllUSDN", [false, true], nil)
5720 if ((inv == inv))
5821 then nil
5922 else throw("Strict value is not equal to itself.")
6023 }
24+ else throw("Access Denied")
6125
6226
6327
6428 @Callable(i)
65-func vw () = if ((i.caller != this))
66- then throw("Access Denied")
67- else {
29+func v () = if (if ((i.caller == this))
30+ then true
31+ else (i.caller == adminAddress))
32+ then {
6833 let usdnInitial = assetBalance(this, USDN)
6934 if ((usdnInitial == usdnInitial))
7035 then {
7136 let inv = invoke(Vesting, "withdrawVestedAllUSDN", [false, true], nil)
7237 if ((inv == inv))
7338 then {
7439 let usdnFinal = assetBalance(this, USDN)
7540 if ((usdnFinal == usdnFinal))
7641 then [ScriptTransfer(delegateAddress, usdnFinal, USDN)]
7742 else throw("Strict value is not equal to itself.")
7843 }
7944 else throw("Strict value is not equal to itself.")
8045 }
8146 else throw("Strict value is not equal to itself.")
8247 }
48+ else throw("Access Denied")
8349
8450
8551
8652 @Callable(i)
87-func ic (amount) = if ((i.caller != this))
88- then throw("Access Denied")
89- else {
90- let inv = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(VIRES_USDC_LP, amount)])
91- if ((inv == inv))
92- then nil
93- else throw("Strict value is not equal to itself.")
94- }
95-
96-
97-
98-@Callable(i)
99-func it (amount) = if ((i.caller != this))
100- then throw("Access Denied")
101- else {
102- let inv = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(VIRES_USDT_LP, amount)])
103- if ((inv == inv))
104- then nil
105- else throw("Strict value is not equal to itself.")
106- }
107-
108-
109-
110-@Callable(i)
111-func ClaimRewardsUSDN () = if ((i.caller != this))
112- then throw("Access Denied")
113- else {
53+func ClaimRewardsUSDN () = if (if ((i.caller == this))
54+ then true
55+ else (i.caller == adminAddress))
56+ then {
11457 let USDNReward = invoke(ClaimsRewards, "claimRewards", nil, nil)
11558 if ((USDNReward == USDNReward))
11659 then nil
11760 else throw("Strict value is not equal to itself.")
11861 }
62+ else throw("Access Denied")
11963
12064
12165 @Verifier(tx)
12266 func verify () = match tx {
12367 case inv: InvokeScriptTransaction =>
124- if ((addressFromRecipient(inv.dApp) == this))
68+ if (if ((addressFromRecipient(inv.dApp) == this))
69+ then (13000001 >= inv.fee)
70+ else false)
12571 then true
12672 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
12773 case _ =>
12874 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
12975 }
13076

github/deemru/w8io/3ef1775 
57.79 ms