@defisaver/positions-sdk 1.0.15 → 1.0.16
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/cjs/liquityV2/index.js
CHANGED
|
@@ -121,7 +121,6 @@ const getTransferredTroves = (web3, network, troveNFTAddress, limitBlocksForEven
|
|
|
121
121
|
const nftContractCreationBlock = nftContractCreationBlockMapping[market];
|
|
122
122
|
const currentBlock = yield web3.eth.getBlockNumber();
|
|
123
123
|
const events = yield nftContract.getPastEvents(TransferEventSig, {
|
|
124
|
-
filter: { to: account },
|
|
125
124
|
fromBlock: limitBlocksForEventFetching ? (currentBlock - 1000) : nftContractCreationBlock,
|
|
126
125
|
});
|
|
127
126
|
const userTransferredTroves = events.filter((event) => (0, utils_1.compareAddresses)(event.returnValues.to, account));
|
package/esm/liquityV2/index.js
CHANGED
|
@@ -114,7 +114,6 @@ const getTransferredTroves = (web3, network, troveNFTAddress, limitBlocksForEven
|
|
|
114
114
|
const nftContractCreationBlock = nftContractCreationBlockMapping[market];
|
|
115
115
|
const currentBlock = yield web3.eth.getBlockNumber();
|
|
116
116
|
const events = yield nftContract.getPastEvents(TransferEventSig, {
|
|
117
|
-
filter: { to: account },
|
|
118
117
|
fromBlock: limitBlocksForEventFetching ? (currentBlock - 1000) : nftContractCreationBlock,
|
|
119
118
|
});
|
|
120
119
|
const userTransferredTroves = events.filter((event) => compareAddresses(event.returnValues.to, account));
|
package/package.json
CHANGED
package/src/liquityV2/index.ts
CHANGED
|
@@ -128,7 +128,6 @@ const getTransferredTroves = async (web3: Web3, network: NetworkNumber, troveNFT
|
|
|
128
128
|
const events = await nftContract.getPastEvents(
|
|
129
129
|
TransferEventSig,
|
|
130
130
|
{
|
|
131
|
-
filter: { to: account },
|
|
132
131
|
fromBlock: limitBlocksForEventFetching ? (currentBlock - 1000) : nftContractCreationBlock,
|
|
133
132
|
},
|
|
134
133
|
);
|