tx · 7nTSF23nj4rJwJ6SjLN6oUz34rNwhKVQB9qYuYSitR8K

3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ:  -0.00900000 Waves

2022.09.15 18:42 [2230423] smart account 3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ > SELF 0.00000000 Waves

{ "type": 13, "id": "7nTSF23nj4rJwJ6SjLN6oUz34rNwhKVQB9qYuYSitR8K", "fee": 900000, "feeAssetId": null, "timestamp": 1663256546847, "version": 2, "chainId": 84, "sender": "3N8x5gskz2zByy7F3pujiodg6HAgdHNU3MQ", "senderPublicKey": "DG81iJnTHiW65E3LH7birSpxT7WWregC8134iCotF6ur", "proofs": [ "4TxZBseSabgjR2qNriXeKj67MVRj3uyYqhnPQio28T5CfHt64TqXdiVYy9MXTNF9uChfw9yRwhJrXKho16YVduvo" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIEBAAAAAMAAAAABFVTRE4BAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AAAAAAtWZXN0aW5nRGFwcAIAAAAjM013R1h1d0F4WTVxbXAxTEc0aWJDQmVIejg2MlkyZ0VUQzgAAAAACmZlZUFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRN4ZyNCrFnIo+y6NX20ZPI4iW2M835D+AAAAABAAAAAWkBAAAAFXdpdGhkcmF3VmVzdGVkQWxsVVNETgAAAAIAAAAFd2hhbGUAAAADcmVnBAAAAAVhZG1pbgIAAAAjM013MXQ1VE1aSnhMdkdqQUZhM1JFckVxUHlvWFBMNE44QTMDCQEAAAACIT0AAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAFYWRtaW4JAAACAAAAAQIAAAARb25seSBhZG1pbiBjYW4gZG8EAAAAEXVzZG5BbW91bnRPblN0YXJ0CQAD8AAAAAIFAAAABHRoaXMFAAAABFVTRE4DCQAAAAAAAAIFAAAAEXVzZG5BbW91bnRPblN0YXJ0BQAAABF1c2RuQ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IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkuyyTL", "height": 2230423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8x2cAsfpeFwTfhyzoAhgDieQAqNMJMRDZTZWgBhQDEKL Next: AR1vH9BdD2vmEREYx1ER61zSF87Cct3TJak1cqedqboB Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
6+let VestingDapp = "3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8"
7+
68 let feeAddress = Address(base58'3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3')
79
810 @Callable(i)
9-func usdn_100 (regu) = {
11+func withdrawVestedAllUSDN (whale,reg) = {
1012 let admin = "3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3"
1113 if ((toString(i.caller) != admin))
1214 then throw("only admin can do")
1416 let usdnAmountOnStart = assetBalance(this, USDN)
1517 if ((usdnAmountOnStart == usdnAmountOnStart))
1618 then {
17- let inv = invoke(addressFromStringValue("3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8"), "wVI", [false, true], nil)
19+ let inv = invoke(addressFromStringValue(VestingDapp), "withdrawVestedAllUSDN", [whale, reg], nil)
1820 if ((inv == inv))
1921 then {
2022 let usdnAmountAfterWithdraw = assetBalance(this, USDN)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let USDN = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
6+let VestingDapp = "3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8"
7+
68 let feeAddress = Address(base58'3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3')
79
810 @Callable(i)
9-func usdn_100 (regu) = {
11+func withdrawVestedAllUSDN (whale,reg) = {
1012 let admin = "3Mw1t5TMZJxLvGjAFa3RErEqPyoXPL4N8A3"
1113 if ((toString(i.caller) != admin))
1214 then throw("only admin can do")
1315 else {
1416 let usdnAmountOnStart = assetBalance(this, USDN)
1517 if ((usdnAmountOnStart == usdnAmountOnStart))
1618 then {
17- let inv = invoke(addressFromStringValue("3MwGXuwAxY5qmp1LG4ibCBeHz862Y2gETC8"), "wVI", [false, true], nil)
19+ let inv = invoke(addressFromStringValue(VestingDapp), "withdrawVestedAllUSDN", [whale, reg], nil)
1820 if ((inv == inv))
1921 then {
2022 let usdnAmountAfterWithdraw = assetBalance(this, USDN)
2123 if ((usdnAmountAfterWithdraw == usdnAmountAfterWithdraw))
2224 then {
2325 let withAmount = (usdnAmountAfterWithdraw - usdnAmountOnStart)
2426 let feeAmount = fraction(withAmount, 5, 100)
2527 [IntegerEntry("fees", (valueOrElse(getInteger("fees"), 0) + feeAmount)), ScriptTransfer(feeAddress, feeAmount, USDN), IntegerEntry("withdrawals", (valueOrElse(getInteger("withdrawals"), 0) + 1))]
2628 }
2729 else throw("Strict value is not equal to itself.")
2830 }
2931 else throw("Strict value is not equal to itself.")
3032 }
3133 else throw("Strict value is not equal to itself.")
3234 }
3335 }
3436
3537
3638 @Verifier(tx)
3739 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3840

github/deemru/w8io/fabc49c 
25.89 ms