tx · FfCuotrs3wLX4qaZeAcwfVDaULFYLrScyaKZFeK3vSG4

3P7D9Y3PwJNQjAgjjiA9i1KYoTmnjitmhj7:  -0.00200000 Waves

2022.11.04 20:26 [3368042] smart account 3P7D9Y3PwJNQjAgjjiA9i1KYoTmnjitmhj7 > SELF 0.00000000 Waves

{ "type": 13, "id": "FfCuotrs3wLX4qaZeAcwfVDaULFYLrScyaKZFeK3vSG4", "fee": 200000, "feeAssetId": null, "timestamp": 1667582698804, "version": 1, "sender": "3P7D9Y3PwJNQjAgjjiA9i1KYoTmnjitmhj7", "senderPublicKey": "EJhdLmyt7DyMp8ayhT3Ee7oAwnQp32e7gUHTeLYBb8MW", "proofs": [ "X7iYRGx3qmJ2UZSMTnWNuK5EqBLmRx9xA8W65tzFxvixG6sYbx7pqCYuy8ZWYVDBC7QzcJGKNtdgycefMYtHaX7" ], "script": "base64:BgIICAISABIAEgADAAl2aXJlc01haW4JAQdBZGRyZXNzAQEaAVdewZYZMMmiQ3hGadYm1vHmuEPQvfZMHrgADHZpcmVzVmVzdGluZwkBB0FkZHJlc3MBARoBV3US3ZOCD1veJXYVOctJ1R9TKAnE6HFeJwAGdXNkY0xwASDWhppxa2HBN0LfTH7jKtUZdP/zSfmSIL9MMDvimAKRsQMBaQEBYQADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAg1BY2Nlc3MgRGVuaWVkBAlscEJhbGFuY2UJAPAHAgUEdGhpcwUGdXNkY0xwBBJ0cnVuY2F0ZWRMcEJhbGFuY2UDCQBmAgDy7eagAQUJbHBCYWxhbmNlBQlscEJhbGFuY2UA8u3moAEEBGNhbGwJAPwHBAUJdmlyZXNNYWluAhNyZXBsZW5pc2hXaXRoQXRva2VuBQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBnVzZGNMcAUSdHJ1bmNhdGVkTHBCYWxhbmNlBQNuaWwDCQAAAgUEY2FsbAUEY2FsbAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBAWIAAwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQINQWNjZXNzIERlbmllZAQEY2FsbAkA/AcEBQx2aXJlc1Zlc3RpbmcCDWNvbnZlcnRUb1VTRE4FA25pbAUDbmlsAwkAAAIFBGNhbGwFBGNhbGwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQFjAAMJAQIhPQIIBQFpBmNhbGxlcgUEdGhpcwkAAgECDUFjY2VzcyBEZW5pZWQEBGNhbGwJAPwHBAUMdmlyZXNWZXN0aW5nAhV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAMwIAgcJAMwIAgYFA25pbAUDbmlsAwkAAAIFBGNhbGwFBGNhbGwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBANpbnYFByRtYXRjaDADCQAAAgkApAgBCAUDaW52BGRBcHAFBHRoaXMGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5W/Ov1A==", "chainId": 87, "height": 3368042, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C7BWz1cAaSCTTnhKB7L4HCvHwkVmw6447eczS1jj9NDM Next: 42PfWgAvu6WNDAo9Bium7iA7ec78RHsxbweMx5V6Hryz Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let viresAddress = Address(base58'3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT')
4+let viresMain = Address(base58'3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT')
5+
6+let viresVesting = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
57
68 let usdcLp = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
79
911 func a () = if ((i.caller != this))
1012 then throw("Access Denied")
1113 else {
12- let call = invoke(viresAddress, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, 1322517199)])
14+ let lpBalance = assetBalance(this, usdcLp)
15+ let truncatedLpBalance = if ((337229554 > lpBalance))
16+ then lpBalance
17+ else 337229554
18+ let call = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, truncatedLpBalance)])
1319 if ((call == call))
1420 then nil
1521 else throw("Strict value is not equal to itself.")
2127 func b () = if ((i.caller != this))
2228 then throw("Access Denied")
2329 else {
24- let call = invoke(viresAddress, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, 1000000000)])
30+ let call = invoke(viresVesting, "convertToUSDN", nil, nil)
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 c () = if ((i.caller != this))
40+ then throw("Access Denied")
41+ else {
42+ let call = invoke(viresVesting, "withdrawVestedAllUSDN", [false, true], nil)
2543 if ((call == call))
2644 then nil
2745 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let viresAddress = Address(base58'3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT')
4+let viresMain = Address(base58'3PAZv9tgK1PX7dKR7b4kchq5qdpUS3G5sYT')
5+
6+let viresVesting = Address(base58'3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk')
57
68 let usdcLp = base58'FSRHtSyXRXQjzQLRtmaqFpBDDCNjY8PU8KNtwoGXVBmr'
79
810 @Callable(i)
911 func a () = if ((i.caller != this))
1012 then throw("Access Denied")
1113 else {
12- let call = invoke(viresAddress, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, 1322517199)])
14+ let lpBalance = assetBalance(this, usdcLp)
15+ let truncatedLpBalance = if ((337229554 > lpBalance))
16+ then lpBalance
17+ else 337229554
18+ let call = invoke(viresMain, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, truncatedLpBalance)])
1319 if ((call == call))
1420 then nil
1521 else throw("Strict value is not equal to itself.")
1622 }
1723
1824
1925
2026 @Callable(i)
2127 func b () = if ((i.caller != this))
2228 then throw("Access Denied")
2329 else {
24- let call = invoke(viresAddress, "replenishWithAtoken", nil, [AttachedPayment(usdcLp, 1000000000)])
30+ let call = invoke(viresVesting, "convertToUSDN", nil, nil)
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 c () = if ((i.caller != this))
40+ then throw("Access Denied")
41+ else {
42+ let call = invoke(viresVesting, "withdrawVestedAllUSDN", [false, true], nil)
2543 if ((call == call))
2644 then nil
2745 else throw("Strict value is not equal to itself.")
2846 }
2947
3048
3149 @Verifier(tx)
3250 func verify () = match tx {
3351 case inv: InvokeScriptTransaction =>
3452 if ((addressFromRecipient(inv.dApp) == this))
3553 then true
3654 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3755 case _ =>
3856 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3957 }
4058

github/deemru/w8io/3ef1775 
23.29 ms