From a9487cb5529492bc63d50db141e635afca87583c Mon Sep 17 00:00:00 2001 From: Finch <57581726+attikusfinch@users.noreply.github.com> Date: Mon, 28 Oct 2024 04:12:57 +0500 Subject: [PATCH 1/2] Update GaspumpJetton.ts readTuple updated in latest ton core --- src/contracts/GaspumpJetton.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/contracts/GaspumpJetton.ts b/src/contracts/GaspumpJetton.ts index 915a9d3..e9f4236 100644 --- a/src/contracts/GaspumpJetton.ts +++ b/src/contracts/GaspumpJetton.ts @@ -5,14 +5,14 @@ import { TradeState } from './TradeState'; // loaders function loadTupleBondingCurveParams(source: TupleReader) { - let _mathScale = source.readBigNumber(); - let _coinScale = source.readBigNumber(); - let _alpha = source.readBigNumber(); - let _beta = source.readBigNumber(); - let _maxSupply = source.readBigNumber(); - let _bondingCurveMaxSupply = source.readBigNumber(); - let _maxTonAmount = source.readBigNumber(); - let _dexFeeAmount = source.readBigNumber(); + let _mathScale = source.items[0]; + let _coinScale = source.items[1]; + let _alpha = source.items[2]; + let _beta = source.items[3]; + let _maxSupply = source.items[4]; + let _bondingCurveMaxSupply = source.items[5]; + let _maxTonAmount = source.items[6]; + let _dexFeeAmount = source.items[7]; return { $$type: 'BondingCurveParams' as const, mathScale: _mathScale, coinScale: _coinScale, alpha: _alpha, beta: _beta, maxSupply: _maxSupply, bondingCurveMaxSupply: _bondingCurveMaxSupply, maxTonAmount: _maxTonAmount, dexFeeAmount: _dexFeeAmount }; } @@ -255,4 +255,4 @@ export class GaspumpJetton implements Contract { let result = source.readBigNumber(); return result; } -} \ No newline at end of file +} From 6b62a05abf7236ecb1fbad6474307783a4fb88ec Mon Sep 17 00:00:00 2001 From: Finch <57581726+attikusfinch@users.noreply.github.com> Date: Thu, 31 Oct 2024 05:24:33 +0500 Subject: [PATCH 2/2] Update GaspumpJetton.ts --- src/contracts/GaspumpJetton.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/contracts/GaspumpJetton.ts b/src/contracts/GaspumpJetton.ts index e9f4236..71bfc2d 100644 --- a/src/contracts/GaspumpJetton.ts +++ b/src/contracts/GaspumpJetton.ts @@ -5,14 +5,14 @@ import { TradeState } from './TradeState'; // loaders function loadTupleBondingCurveParams(source: TupleReader) { - let _mathScale = source.items[0]; - let _coinScale = source.items[1]; - let _alpha = source.items[2]; - let _beta = source.items[3]; - let _maxSupply = source.items[4]; - let _bondingCurveMaxSupply = source.items[5]; - let _maxTonAmount = source.items[6]; - let _dexFeeAmount = source.items[7]; + let _mathScale = source.pop(); + let _coinScale = source.pop(); + let _alpha = source.pop(); + let _beta = source.pop(); + let _maxSupply = source.pop(); + let _bondingCurveMaxSupply = source.pop(); + let _maxTonAmount = source.pop(); + let _dexFeeAmount = source.pop(); return { $$type: 'BondingCurveParams' as const, mathScale: _mathScale, coinScale: _coinScale, alpha: _alpha, beta: _beta, maxSupply: _maxSupply, bondingCurveMaxSupply: _bondingCurveMaxSupply, maxTonAmount: _maxTonAmount, dexFeeAmount: _dexFeeAmount }; }