Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

017801bdefab0fa6a115a329cb39a9b4d5562b55d5751d8b36b686f29e21aa3f
Timestamp (utc)
2022-03-26 23:10:07
Fee Paid
0.00001784 BSV
(
0.12980433 BSV
-
0.12978649 BSV
)
Fee Rate
500.2 sat/KB
Version
1
Confirmations
249,897
Size Stats
3,566 B

3 Outputs

Total Output:
0.12978649 BSV
  • jrun relayx.ioMì {"in":0,"ref":["7d14c868fe39439edffe6982b669e7b4d3eb2729eee7c262ec2494ee3e310e99_o1"],"out":["e13ab9ded0d90274746f176e4a024dffd5ddc534cfa1f4404de64b906575f2af"],"del":[],"cre":["mvfWfNXwZ7CnA4afcsuJpmmpnJLsm54TLZ"],"exec":[{"op":"DEPLOY","data":["class Pool extends Token {\n init(amount, owner) {\n this._checkPoolAmount(amount);\n this._checkExtend();\n // Make sure we are calling from ourself\n const minting = caller === this.constructor;\n const sending = caller && caller.constructor === this.constructor;\n if (!minting && !sending) throw new Error('Must create token using mint()');\n\n this.sender = sending ? caller.owner : null;\n this.amount = amount;\n if (owner) this.owner = owner;\n }\n\n static updateTotalSupply(totalSupply = 0) {\n this.checkExtend();\n this.checkPoolAmount(totalSupply);\n this.totalSupply = totalSupply;\n }\n\n static updateReserve(reserve0 = 0, reserve1 = 0) {\n this.checkExtend();\n this.checkPoolAmount(reserve0);\n this.checkPoolAmount(reserve1);\n this.reserve0 = reserve0;\n this.reserve1 = reserve1;\n }\n\n static addLiquidity(reserve0, reserve1, liquidity, owner) {\n this.checkExtend();\n const reserved0 = this.reserve0;\n const reserved1 = this.reserve0;\n this.updateReserve(reserve0, reserve1);\n this.checkPoolAmount(liquidity);\n this.totalSupply += liquidity;\n if (reserved0 === 0 && reserved1 === 0 && this.MINIMUM_LIQUIDITY > 0) {\n this.totalSupply += this.MINIMUM_LIQUIDITY;\n }\n this.checkPoolAmount(this.totalSupply);\n return new this(liquidity, owner);\n }\n\n static swap(reserve0, reserve1) {\n this.checkExtend();\n this.updateReserve(reserve0, reserve1);\n }\n\n static removeLiquidity(lp, reserve0, reserve1) {\n this.checkExtend();\n if (!(lp instanceof this)) {\n throw new Error('expected value to be an instance of Pool');\n }\n const liquidity = lp.amount;\n lp.destroy();\n this.totalSupply -= liquidity;\n this.updateReserve(reserve0, reserve1);\n return liquidity;\n }\n\n static setFriends(friends) {\n this.friends = friends;\n }\n\n static checkPoolAmount(amount) {\n if (typeof amount !== 'number') throw new Error('amount is not a number');\n if (!Number.isInteger(amount)) throw new Error('amount must be an integer');\n if (amount <= 0) throw new Error('amount must be positive');\n if (amount > Number.MAX_SAFE_INTEGER) throw new Error('amount too large');\n }\n\n _checkPoolAmount(amount) {\n if (typeof amount !== 'number') throw new Error('amount is not a number');\n if (!Number.isInteger(amount)) throw new Error('amount must be an integer');\n if (amount <= 0) throw new Error('amount must be positive');\n if (amount > Number.MAX_SAFE_INTEGER) throw new Error('amount too large');\n }\n\n static checkExtend() {\n // The base Pool class cannot interact\n const extended = this !== Pool;\n if (!extended) throw new Error('Pool must be extended');\n }\n\n _checkExtend() {\n const extended = this.constructor !== Pool;\n if (!extended) throw new Error('Pool must be extended');\n }\n\n}",{"MINIMUM_LIQUIDITY":1000,"deps":{"Token":{"$jig":0}},"reserve0":0,"reserve1":0,"sealed":"owner","token0":"","token1":"","totalSupply":0}]}]}
    https://whatsonchain.com/tx/017801bdefab0fa6a115a329cb39a9b4d5562b55d5751d8b36b686f29e21aa3f