tx · GVsHPGiwfjfCRZuzb9w3U9EKLyuAtN7cbpi5vdf1pRYR
3MrFSfzFCoNgJNYrYyiTC8Ehc9KnSqVbseS: -0.01000000 Waves
2022.12.18 00:28 [2364834] smart account 3MrFSfzFCoNgJNYrYyiTC8Ehc9KnSqVbseS > SELF 0.00000000 Waves
{
"type": 13,
"id": "GVsHPGiwfjfCRZuzb9w3U9EKLyuAtN7cbpi5vdf1pRYR",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1671312529423,
"version": 2,
"chainId": 84,
"sender": "3MrFSfzFCoNgJNYrYyiTC8Ehc9KnSqVbseS",
"senderPublicKey": "GkBH5h9ZmiCL2yKrkq4ZzbofEdZTaAMWN5B9kH66qMbU",
"proofs": [
"2nrDC4y52RCmWfKm3G2tB1tDH6PTzQCErW4QKSDezCzexATtBFnVABUHctjwAkrw2ytTmDcW3Bj9B1DWcJjbhSPZ"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAAEVVNETgEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAAAB0NSRUFUT1IJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNQRkZMTTY4ZmdzakhyNmNxTXloZDZQelNFQXpwUDFLbnlqAAAAAAhSRUZFUlJFUgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM1BGRkxNNjhmZ3NqSHI2Y3FNeWhkNlB6U0VBenBQMUtueWoAAAABAAAAAWkBAAAAAXcAAAAABAAAAAckbWF0Y2gwCQAD/AAAAAQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNQQ2J2UFZRZlN2VnU4OGlwOEZtNVlqd0poakVZazFUeGhrAgAAABV3aXRoZHJhd1Zlc3RlZEFsbFVTRE4JAARMAAAAAgcJAARMAAAAAgYFAAAAA25pbAUAAAADbmlsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAABmFtb3VudAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAdDUkVBVE9SCQAAawAAAAMFAAAABmFtb3VudAAAAAAAAAAAUAAAAAAAAAAAZAUAAAAEVVNETgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAhSRUZFUlJFUgkAAGsAAAADBQAAAAZhbW91bnQAAAAAAAAAABQAAAAAAAAAAGQFAAAABFVTRE4FAAAAA25pbAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm6pqqN",
"height": 2364834,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5ijiWB3tyj8R3Czx3rTftxfFFM8E66CXbS2n6AKZJoah
Next: none
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
| 6 | + | let CREATOR = addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj") |
---|
| 7 | + | |
---|
| 8 | + | let REFERRER = addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj") |
---|
| 9 | + | |
---|
6 | 10 | | @Callable(i) |
---|
7 | 11 | | func w () = match invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) { |
---|
8 | 12 | | case amount: Int => |
---|
9 | | - | [ScriptTransfer(addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj"), (amount / 10), USDN)] |
---|
| 13 | + | [ScriptTransfer(CREATOR, fraction(amount, 80, 100), USDN), ScriptTransfer(REFERRER, fraction(amount, 20, 100), USDN)] |
---|
10 | 14 | | case _ => |
---|
11 | 15 | | nil |
---|
12 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
| 6 | + | let CREATOR = addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj") |
---|
| 7 | + | |
---|
| 8 | + | let REFERRER = addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj") |
---|
| 9 | + | |
---|
6 | 10 | | @Callable(i) |
---|
7 | 11 | | func w () = match invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) { |
---|
8 | 12 | | case amount: Int => |
---|
9 | | - | [ScriptTransfer(addressFromStringValue("3PFFLM68fgsjHr6cqMyhd6PzSEAzpP1Knyj"), (amount / 10), USDN)] |
---|
| 13 | + | [ScriptTransfer(CREATOR, fraction(amount, 80, 100), USDN), ScriptTransfer(REFERRER, fraction(amount, 20, 100), USDN)] |
---|
10 | 14 | | case _ => |
---|
11 | 15 | | nil |
---|
12 | 16 | | } |
---|
13 | 17 | | |
---|
14 | 18 | | |
---|
15 | 19 | | @Verifier(tx) |
---|
16 | 20 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
17 | 21 | | |
---|