@aurigami/sdk 1.11.0-beta3 → 1.11.0-beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4663,11 +4663,14 @@ var PlyGameRead = /*#__PURE__*/function (_BlockchainEntityRead) {
4663
4663
 
4664
4664
  _proto.parseBetMakeEvent = function parseBetMakeEvent(event) {
4665
4665
  var outcome = ['bigWin', 'win', 'lose', 'noImpact'][event.args.outcome];
4666
- var amount = event.args.amount;
4667
- var unlock = amount.mul([10, 1, 0, 0][event.args.outcome]);
4666
+ var betAmount = event.args.amount; // 0%, 0%, 100%, 2%
4667
+ // big win, win, lose, no impact
4668
+
4669
+ var lostAmount = betAmount.mul([0, 0, 100, 2][event.args.outcome]).div(100);
4670
+ var unlock = betAmount.mul([10, 1, 0, 0][event.args.outcome]);
4668
4671
  return {
4669
4672
  player: event.args.player,
4670
- amount: new TokenAmount(this.plyToken, amount.toString()),
4673
+ lostAmount: new TokenAmount(this.plyToken, lostAmount.toString()),
4671
4674
  unlockedPulpAmount: new TokenAmount(this.pulpToken, unlock.toString()),
4672
4675
  outcome: outcome,
4673
4676
  transactionHash: event.transactionHash,