@typus/typus-perp-sdk 1.0.64 → 1.0.66
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.
- package/dist/src/fetch.js +1 -2
- package/package.json +1 -1
package/dist/src/fetch.js
CHANGED
|
@@ -380,8 +380,7 @@ function getUserStake(config, user) {
|
|
|
380
380
|
lpShares_1 = [];
|
|
381
381
|
reader.readVec(function (reader) {
|
|
382
382
|
var length = reader.readULEB();
|
|
383
|
-
var
|
|
384
|
-
var lpShare = structs_4.LpUserShare.fromBcs(Uint8Array.from(Array.from(bytes)));
|
|
383
|
+
var lpShare = structs_4.LpUserShare.fromFields(structs_4.LpUserShare.bcs.read(reader));
|
|
385
384
|
var incentives = [];
|
|
386
385
|
reader.readVec(function (reader) {
|
|
387
386
|
var incentive = reader.read64();
|