Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
franco-gondi committed Mar 6, 2024
1 parent a471660 commit 6570b5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/trader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ async function lend(gondi: Gondi, collections: Collection[]) {
const nfts = (await gondi.ownedNfts()).ownedNfts;
if (nfts.length == 0) return;
const nft = nfts[Math.floor(Math.random() * nfts.length)];
const { offers } = await gondi.offers({ filterBy: { nft: Number(nft.id), status: [OfferStatus.Active] } });
const { offers } = await gondi.offers({
filterBy: { nft: Number(nft.id), status: [OfferStatus.Active] },
});
let skipOffers = Math.random() * offers.length;
for (const offer of offers) {
if (--skipOffers >= 0) continue;
Expand Down

0 comments on commit 6570b5b

Please sign in to comment.