Add limit 1 to rates
This commit is contained in:
@ -15,7 +15,8 @@ export function useRates(symbol: string, leaveOpen = true) {
|
|||||||
rb.withFilter()
|
rb.withFilter()
|
||||||
.kinds([1009 as EventKind])
|
.kinds([1009 as EventKind])
|
||||||
.authors([bech32ToHex(SnortPubkey)])
|
.authors([bech32ToHex(SnortPubkey)])
|
||||||
.tag("d", [symbol]);
|
.tag("d", [symbol])
|
||||||
|
.limit(1);
|
||||||
return rb;
|
return rb;
|
||||||
}, [symbol]);
|
}, [symbol]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user