tx · BEpaUkw1HzzLUSRsGAdjNB3rtqqxigVvsPwpqDtnNWhj

3N2qeokoCMkNrCkh5EFfZMFYN7Krun5ZFxJ:  -0.03200000 Waves

2022.05.31 21:56 [2076222] smart account 3N2qeokoCMkNrCkh5EFfZMFYN7Krun5ZFxJ > SELF 0.00000000 Waves

{ "type": 13, "id": "BEpaUkw1HzzLUSRsGAdjNB3rtqqxigVvsPwpqDtnNWhj", "fee": 3200000, "feeAssetId": null, "timestamp": 1654023399899, "version": 2, "chainId": 84, "sender": "3N2qeokoCMkNrCkh5EFfZMFYN7Krun5ZFxJ", "senderPublicKey": "C5oAVhhdz5YuSqTdvGaLe6D6KBEYTJ2rfei5E9ygFzDj", "proofs": [ "34DDuGq8whBXScVJUV2cGKFj7UCEF7EmYhEw7RuHMN6imv732naaZUFAniiqtTqyi1c42VCJGTE5rPys4yUc3xyv" ], "script": "base64:AAIFAAAAAAAAABMIAhIDCgEIEgMKAQgSAwoBARIAAAAACgAAAAALa19pbnN1cmFuY2UCAAAAC2tfaW5zdXJhbmNlAAAAAAxrX3doaXRlbGlzdHQCAAAAC2tfd2hpdGVsaXN0AAAAAA1BRE1JTl9BRERSRVNTCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUbspxk39jXvqIb02ujTgCQNA7p6nZQI8vAAAAABBBRE1JTl9QVUJMSUNfS0VZAQAAACC3HUQ2kz6BYDcABtv0mLme67rWgV2Yt1LGHBuoQ65xTgAAAAAEVVNETgEAAAAg93bq9/eDymXbbhPuAjvPWCmVqcHRjfJL2mzYHWKAyN4AAAAADFVTRE5fU1RBS0lORwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVNUUiPoS2q6RwzbnHdK7erN5p99Do42YpgEAAAAOdG9Db21wb3NpdGVLZXkAAAACAAAABF9rZXkAAAAIX2FkZHJlc3MJAAEsAAAAAgkAASwAAAACBQAAAARfa2V5AgAAAAFfBQAAAAhfYWRkcmVzcwEAAAAJaW5zdXJhbmNlAAAAAAkBAAAAC3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W50AAAAAgUAAAAEVVNETgUAAAAHX2Ftb3VudAUAAAADbmlsAwkAAAAAAAACBQAAAAVzdGFrZQUAAAAFc3Rha2UJAQAAAA91cGRhdGVJbnN1cmFuY2UAAAABCQAAZAAAAAIJAQAAAAlpbnN1cmFuY2UAAAAABQAAAAdfYW1vdW50CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABBBRE1JTl9QVUJMSUNfS0VZzQRvbw==", "height": 2076222, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FTDM9Tpfi1VpGWJrNmLJGE8aHsg6bvvA4dZBPepZRA7i Next: 5HJpU1DTC1iLU3fQKga6uhJmWCptDtJxYNnkMUpG13SM Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "k_insurance"
55
66 let b = "k_whitelist"
77
88 let c = Address(base58'3Mz1td457M34EA7wU1swt2DBQDZEDpsMtgE')
99
1010 let d = base58'DKoVYQRirYnan4ojiUkT12oE6XmpyNoht3ZcecUpgLsf'
1111
1212 let e = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1313
1414 let f = Address(base58'3N9LkJahTMx41wGhSxLS42prCZtRCp4dhTs')
1515
1616 func g (h,i) = ((h + "_") + i)
1717
1818
1919 func j () = valueOrElse(getInteger(this, a), 0)
2020
2121
2222 func k (i) = valueOrElse(getBoolean(this, g(b, i)), false)
2323
2424
2525 func l (m) = [IntegerEntry(a, m)]
2626
2727
2828 @Callable(m)
2929 func addWhitelist (n) = if ((m.caller != c))
3030 then throw("Invalid addWhitelist params")
3131 else [BooleanEntry(g(b, n), true)]
3232
3333
3434
3535 @Callable(m)
3636 func removeWhitelist (n) = if ((m.caller != c))
3737 then throw("Invalid addWhitelist params")
3838 else [BooleanEntry(g(b, n), false)]
3939
4040
4141
4242 @Callable(m)
4343 func withdraw (o) = if (if (!(k(toString(m.caller))))
4444 then true
4545 else (o > j()))
4646 then throw("Invalid withdraw params")
4747 else {
4848 let p = invoke(f, "unlockNeutrino", [o, toBase58String(e)], nil)
4949 if ((p == p))
5050 then (l((j() - o)) ++ [ScriptTransfer(m.caller, o, e)])
5151 else throw("Strict value is not equal to itself.")
5252 }
5353
5454
5555
5656 @Callable(m)
5757 func deposit () = {
5858 let o = m.payments[0].amount
5959 if (if ((m.payments[0].assetId != e))
6060 then true
6161 else if (!(k(toString(m.caller))))
6262 then (m.caller != c)
6363 else false)
6464 then throw("Invalid deposit params")
6565 else {
6666 let q = invoke(f, "lockNeutrino", nil, [AttachedPayment(e, o)])
6767 if ((q == q))
6868 then l((j() + o))
6969 else throw("Strict value is not equal to itself.")
7070 }
7171 }
7272
7373
7474 @Verifier(r)
7575 func s () = sigVerify(r.bodyBytes, r.proofs[0], d)
7676

github/deemru/w8io/026f985 
27.77 ms