tx · 5QSWyRyEcsk7YJuDqhP7isHa1DCcUYV5askUkMLVfsH5

3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp:  -0.01400000 Waves

2021.03.13 12:29 [1435736] smart account 3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp > SELF 0.00000000 Waves

{ "type": 13, "id": "5QSWyRyEcsk7YJuDqhP7isHa1DCcUYV5askUkMLVfsH5", "fee": 1400000, "feeAssetId": null, "timestamp": 1615627775041, "version": 1, "sender": "3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp", "senderPublicKey": "2Ek8QRiW2SC3s4ZC79pXUmvJbmqU6agaNsjN2wmnzmSs", "proofs": [ "5eMNsxz5ufYNSDQbp33ZeDjUrC6ceyi5VGYKfzHCnZgmk5C536AUHYrva4xLGviwEB1txZd2Di6zQDgcY6HvrmH6" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIIAQAAAAcAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAASa1VzZXJUb3RhbFZvdGVTV09QAgAAABVfdXNlcl90b3RhbF9TV09QX3ZvdGUAAAAADWtQb29sVm90ZVNXT1ACAAAACl92b3RlX1NXT1AAAAAADmtUb3RhbFZvdGVTV09QAgAAAA90b3RhbF92b3RlX1NXT1AAAAAAB2dvdkFkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQTpUX1edzu1C+kk914p42uKvNrLVgR210BAAAAFGlzQ2FsbGVySW5Hb3Zlcm5hbmNlAAAAAQAAAAR1c2VyAwMJAABmAAAAAgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdnb3ZBZGRyCQABLAAAAAIJAAQlAAAAAQUAAAAEdXNlcgIAAAAMX1NXT1BfYW1vdW50AAAAAAAAAAAAAAAAAAAAAAAABgkAAGYAAAACCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgkABCUAAAABBQAAAAR1c2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QABpAAAAAEFAAAAFHVzZXJUb3RhbFZvdGVTV09QTmV3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAARa1VzZXJQb29sVm90ZVNXT1ACAAAAAV8FAAAAC3Bvb2xBZGRyZXNzBQAAAA9wb29sVm90ZVNXT1BOZXcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAEmtVc2VyVG90YWxWb3RlU1dPUAUAAAAUdXNlclRvdGFsVm90ZVNXT1BOZXcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgUAAAALcG9vbEFkZHJlc3MFAAAADWtQb29sVm90ZVNXT1AFAAAAD3Bvb2xWb3RlU1dPUG5ldwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAOa1RvdGFsVm90ZVNXT1AFAAAAEHRvdGFsVm90ZVNXT1BuZXcFAAAAA25pbAAAAAB+M4iz", "chainId": 84, "height": 1435736, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2FkE548WTBBAkDWGGa5d9Rfgs81tYX3GmRvsRQmyRLZG Next: G5fneV7LBZ1Mpo3NptMCfUNmC6FZJahv8bQPQTmqsg1F Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "_vote"
55
66 let b = "_user_total_SWOP_vote"
77
88 let c = "_vote_SWOP"
99
1010 let d = "total_vote_SWOP"
1111
1212 let e = Address(base58'3MqhxbxHEMtp2Rwy1gUb6cPSJHQepdap1Yp')
1313
1414 func f (g) = if (if ((valueOrElse(getInteger(e, (toString(g) + "_SWOP_amount")), 0) > 0))
1515 then true
1616 else (valueOrElse(getInteger(this, (toString(g) + b)), 0) > 0))
1717 then true
1818 else false
1919
2020
2121 func h (i) = if ((valueOrElse(getInteger(e, (i + "_startHeight")), 0) > 0))
2222 then true
2323 else false
2424
2525
2626 @Callable(j)
2727 func votePoolWeight (i,k) = if (!(f(j.caller)))
2828 then throw("This address has 0 SWOP in Governance dApp")
2929 else if (!(h(i)))
3030 then throw("This pool has no _startHeight in Governance dApp")
3131 else {
3232 let l = valueOrElse(getInteger(this, (toString(j.caller) + b)), 0)
3333 let m = valueOrElse(getInteger(this, (((toString(j.caller) + a) + "_") + i)), 0)
3434 let n = valueOrElse(getInteger(this, (i + c)), 0)
3535 let o = valueOrElse(getInteger(this, d), 0)
3636 let p = getIntegerValue(e, (toString(j.caller) + "_SWOP_amount"))
3737 let q = (k - m)
3838 let r = (l + q)
3939 let s = (n + q)
4040 let t = (n + q)
4141 if ((p > r))
4242 then throw(((((toString(this) + " has ") + toString(p)) + "SWOP in governance. New SWOP in voting ") + toString(r)))
4343 else [IntegerEntry((((toString(j.caller) + a) + "_") + i), k), IntegerEntry((toString(j.caller) + b), r), IntegerEntry((i + c), s), IntegerEntry(d, t)]
4444 }
4545
4646

github/deemru/w8io/169f3d6 
30.50 ms