#0
nonstandard
0.00004000 BSV
Q!þd¼Ð[i©ÒA9q¤Öw;A¶&:Rhlf.aÛôQ®M×{"__cls":"class PositionSC {\n constructor(owner, numberOfShares = 0) {\n this._owners = [owner];\n this.numberOfShares = numberOfShares;\n }\n\n split(newNumberOfShares) {\n if (newNumberOfShares === this.numberOfShares) {\n return this;\n }\n\n if (newNumberOfShares < this.numberOfShares) {\n this.numberOfShares -= newNumberOfShares;\n return new PositionSC(this._owners[0], newNumberOfShares);\n }\n\n throw new Error(`Cannot split current transaction`);\n }\n\n setToZero() {\n this.numberOfShares = 0;\n }\n\n }","__index":{"obj":0},"__args":["02fe64bcd05b69a9d2413971a491d6779e3b41b6263a5268166c11662e61dbf408",100],"__func":"constructor"}u
https://whatsonchain.com/tx/a27856fbc7fca3494bc6cf3ec3178a70e2da13f6863b34a91a0ebea537368f16