tx · DMxrX39rHfPLkMHKSmXzjaLCCUpu4pLLASA7KCMgRrDs

3P8952x7KbQF2mvPbWXUnz884ccTpupoxH1:  -0.00200000 Waves

2022.11.06 01:13 [3369783] smart account 3P8952x7KbQF2mvPbWXUnz884ccTpupoxH1 > SELF 0.00000000 Waves

{ "type": 13, "id": "DMxrX39rHfPLkMHKSmXzjaLCCUpu4pLLASA7KCMgRrDs", "fee": 200000, "feeAssetId": null, "timestamp": 1667686416467, "version": 1, "sender": "3P8952x7KbQF2mvPbWXUnz884ccTpupoxH1", "senderPublicKey": "C29NSymqRQpfn9cmSiGq46qoqGA67vuEU93WPjfZg3WE", "proofs": [ "KvWRfGhUAzSb6BjpevKNTjwBQhU12WQze6G7nqv2guU9EDizv7pXQdBUPnsfm9RwERcgXydELvid3mDcaf1fNd3" ], "script": "base64:BgIICAISABIAEgAEAAl2aXJlc01haW4JAQdBZGRyZXNzAQEaAVdewZYZMMmiQ3hGadYm1vHmuEPQvfZMHrgADHZpcmVzVmVzdGluZwkBB0FkZHJlc3MBARoBV3US3ZOCD1veJXYVOctJ1R9TKAnE6HFeJwAGdXNkdExwASAcDFnC+hMLK+WkJlhR4Werzc+yLRwW39K6M76lbcafngAGdXNkY0xwASDWhppxa2HBN0LfTH7jKtUZdP/zSfmSIL9MMDvimAKRsQMBaQEBdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAg1BY2Nlc3MgRGVuaWVkBAlscEJhbGFuY2UJAPAHAgUEdGhpcwUGdXNkdExwBARjYWxsCQD8BwQFCXZpcmVzTWFpbgITcmVwbGVuaXNoV2l0aEF0b2tlbgUDbmlsCQDMCAIJAQ9BdHRhY2hlZFBheW1lbnQCBQZ1c2R0THAFCWxwQmFsYW5jZQUDbmlsAwkAAAIFBGNhbGwFBGNhbGwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQFjAAMJAQIhPQIIBQFpBmNhbGxlcgUEdGhpcwkAAgECDUFjY2VzcyBEZW5pZWQECWxwQmFsYW5jZQkA8AcCBQR0aGlzBQZ1c2RjTHAEBGNhbGwJAPwHBAUJdmlyZXNNYWluAhNyZXBsZW5pc2hXaXRoQXRva2VuBQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBnVzZGNMcAUJbHBCYWxhbmNlBQNuaWwDCQAAAgUEY2FsbAUEY2FsbAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBFXdpdGhkcmF3VmVzdGVkQWxsVVNETgADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAg1BY2Nlc3MgRGVuaWVkBARjYWxsCQD8BwQFDHZpcmVzVmVzdGluZwIVd2l0aGRyYXdWZXN0ZWRBbGxVU0ROCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBQRjYWxsBQRjYWxsBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQDaW52BQckbWF0Y2gwAwkAAAIJAKQIAQgFA2ludgRkQXBwBQR0aGlzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZgbcQ4=", "chainId": 87, "height": 3369783, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let viresMain = Address(base58'3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT')
5+
6+let viresVesting = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
7+
8+let usdtLp = base58'2tVLdi5fQXk2JcuDAojhctnDp5B5PZhNMyj5GUpeC3tZ'
9+
10+let usdcLp = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
11+
12+@Callable(i)
13+func t () = if ((i.caller != this))
14+ then throw("Access Denied")
15+ else {
16+ let lpBalance = assetBalance(this, usdtLp)
17+ let call = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(usdtLp, lpBalance)])
18+ if ((call == call))
19+ then nil
20+ else throw("Strict value is not equal to itself.")
21+ }
22+
23+
24+
25+@Callable(i)
26+func c () = if ((i.caller != this))
27+ then throw("Access Denied")
28+ else {
29+ let lpBalance = assetBalance(this, usdcLp)
30+ let call = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, lpBalance)])
31+ if ((call == call))
32+ then nil
33+ else throw("Strict value is not equal to itself.")
34+ }
35+
36+
37+
38+@Callable(i)
39+func withdrawVestedAllUSDN () = if ((i.caller != this))
40+ then throw("Access Denied")
41+ else {
42+ let call = invoke(viresVesting, "withdrawVestedAllUSDN", [false, true], nil)
43+ if ((call == call))
44+ then nil
45+ else throw("Strict value is not equal to itself.")
46+ }
47+
48+
49+@Verifier(tx)
50+func verify () = match tx {
51+ case inv: InvokeScriptTransaction =>
52+ if ((addressFromRecipient(inv.dApp) == this))
53+ then true
54+ else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
55+ case _ =>
56+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
57+}
58+

github/deemru/w8io/026f985 
34.74 ms