tx · BhG9uVgDuymBUrkvZf89ipSJ4XSUW28GRWWDDhtjwjXz

3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD:  -0.00200000 Waves

2022.07.17 17:47 [2143895] smart account 3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD > SELF 0.00000000 Waves

{ "type": 13, "id": "BhG9uVgDuymBUrkvZf89ipSJ4XSUW28GRWWDDhtjwjXz", "fee": 200000, "feeAssetId": null, "timestamp": 1658069253554, "version": 2, "chainId": 84, "sender": "3N2HzcM61QM3LsUrsq4UBvi2btJMHyxvVMD", "senderPublicKey": "CU5wMqCBg4bC4Zgs8QGiqjjvmeMkSiKo3Ff6k5axJZwr", "proofs": [ "6z2Ezx9VJhrTiCe5ShuWL6Jbvwgxs4gNQ9LtSZ1f69pUaqtzTwV3MDmVmZktpwLiQxUkQmQ8kmW7pfM7mGnujkH" ], "script": "base64:AAIFAAAAAAAAABMIAhIDCgEBEgMKAQESBQoDAQgIAAAAAwAAAAAFZ3dVc2QBAAAAINbXd8leUlf/bE0Zz7m+2f/PuYFvN2bQwIvTCLxCdiWNAAAAAAR1c2RuAQAAACAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAAAAAAIdXNkbkRhcHABAAAAGgFU+6vqWU0WAAbWyOYKOjtwWsCYI4JyWk1VAAAAAwAAAAFpAQAAAA9zd2FwR0d1c2RUb1VzZG4AAAABAAAABmFtb3VudAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAVnd1VzZAkAAAIAAAABAgAAAClPbmx5IGd3VXNkIHRva2VuIGlzIGFsbG93ZWQgZm9yIHN3YXBwaW5nLgQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAA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9yIHN0YWtpbmcuBAAAAANyZXMJAAP8AAAABAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM05Dcm9LeHBDV0NZaWp3amlWQmc2aGMyVDdEYWFqckh1QnICAAAAA3B1dAkABEwAAAACBQAAAAFhBQAAAANuaWwIBQAAAAFpAAAACHBheW1lbnRzAwkAAAAAAAACBQAAAANyZXMFAAAAA3JlcwQAAAAHJG1hdGNoMAUAAAADcmVzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXIFAAAAByRtYXRjaDAJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAEa2V5MQUAAAABcgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAEa2V5MggJAAPvAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM05Dcm9LeHBDV0NZaWp3amlWQmc2aGMyVDdEYWFqckh1QnIAAAAHcmVndWxhcgUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAADt60I6", "height": 2143895, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6WEM4fJuGM4VhVN5KnQ9LuvqmEEUNHwkbMJfghbAGJA7 Next: FjNu8RwmfwC2T3vrWvnffK1GQG6RA4GTAFvRd8GYH9MF Diff:
OldNewDifferences
5252
5353
5454 @Callable(d)
55-func putUsdnLp (k,l) = {
55+func putUsdnLp (j,k,l) = {
5656 let f = value(d.payments[0])
5757 if ((f.assetId != b))
5858 then throw("Only usdn token is allowed for staking.")
5959 else {
60- let m = invoke(addressFromStringValue("3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr"), "put", nil, d.payments)
60+ let m = invoke(addressFromStringValue("3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr"), "put", [j], d.payments)
6161 if ((m == m))
6262 then {
6363 let i = m
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'FTeosv2BmZED7kBcGnqDy9tba1VdkeodQveSAATMQusJ'
55
66 let b = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
77
88 let c = base58'3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr'
99
1010 @Callable(d)
1111 func swapGGusdToUsdn (e) = {
1212 let f = value(d.payments[0])
1313 if ((f.assetId != a))
1414 then throw("Only gwUsd token is allowed for swapping.")
1515 else {
1616 let g = toBase58String(d.caller.bytes)
1717 let h = {
1818 let i = getInteger(this, g)
1919 if ($isInstanceOf(i, "Int"))
2020 then {
2121 let j = i
2222 j
2323 }
2424 else 0
2525 }
2626 [ScriptTransfer(d.caller, e, b)]
2727 }
2828 }
2929
3030
3131
3232 @Callable(d)
3333 func swapUsdnToGGusd (e) = {
3434 let f = value(d.payments[0])
3535 if ((f.assetId != b))
3636 then throw("Only usdn token is allowed for swapping.")
3737 else {
3838 let g = toBase58String(d.caller.bytes)
3939 let h = {
4040 let i = getInteger(this, g)
4141 if ($isInstanceOf(i, "Int"))
4242 then {
4343 let j = i
4444 j
4545 }
4646 else 0
4747 }
4848 [ScriptTransfer(d.caller, e, a)]
4949 }
5050 }
5151
5252
5353
5454 @Callable(d)
55-func putUsdnLp (k,l) = {
55+func putUsdnLp (j,k,l) = {
5656 let f = value(d.payments[0])
5757 if ((f.assetId != b))
5858 then throw("Only usdn token is allowed for staking.")
5959 else {
60- let m = invoke(addressFromStringValue("3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr"), "put", nil, d.payments)
60+ let m = invoke(addressFromStringValue("3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr"), "put", [j], d.payments)
6161 if ((m == m))
6262 then {
6363 let i = m
6464 if ($isInstanceOf(i, "Int"))
6565 then {
6666 let n = i
6767 $Tuple2([IntegerEntry(k, n), IntegerEntry(l, wavesBalance(addressFromStringValue("3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr")).regular)], unit)
6868 }
6969 else throw("Incorrect invoke result")
7070 }
7171 else throw("Strict value is not equal to itself.")
7272 }
7373 }
7474
7575

github/deemru/w8io/169f3d6 
27.31 ms