mirror of
https://github.com/luxfi/sudoamm.git
synced 2026-07-25 16:17:09 +00:00
Changed enumeration to use set size instead of inventory size
This commit is contained in:
@@ -88,7 +88,7 @@ abstract contract LSSVMPairMissingEnumerable is LSSVMPair {
|
||||
@notice Returns all NFT IDs held by the pool
|
||||
*/
|
||||
function getAllHeldIds() external view override returns (uint256[] memory) {
|
||||
uint256 numNFTs = nft().balanceOf(address(this));
|
||||
uint256 numNFTs = idSet.length();
|
||||
uint256[] memory ids = new uint256[](numNFTs);
|
||||
for (uint256 i; i < numNFTs; i++) {
|
||||
ids[i] = idSet.at(i);
|
||||
|
||||
Reference in New Issue
Block a user