@paraswap/dex-lib 3.9.5 → 3.9.6
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.
|
@@ -54,7 +54,7 @@ class WusdmEventPool extends stateful_event_subscriber_1.StatefulEventSubscriber
|
|
|
54
54
|
async handleDeposit(event, state, log) {
|
|
55
55
|
return {
|
|
56
56
|
totalAssets: state.totalAssets + BigInt(event.args.assets),
|
|
57
|
-
totalShares: state.
|
|
57
|
+
totalShares: state.totalShares + BigInt(event.args.shares),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
async handleWithdraw(event, state, log) {
|
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ export class WusdmEventPool extends StatefulEventSubscriber<WusdmPoolState> {
|
|
|
87
87
|
): Promise<DeepReadonly<WusdmPoolState>> {
|
|
88
88
|
return {
|
|
89
89
|
totalAssets: state.totalAssets + BigInt(event.args.assets),
|
|
90
|
-
totalShares: state.
|
|
90
|
+
totalShares: state.totalShares + BigInt(event.args.shares),
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|