Skip to content

Commit

Permalink
chore: reply code review
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhanseng authored and guanbinrui committed Jun 21, 2021
1 parent 2b991b1 commit b4697a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/maskbook/src/plugins/ITO/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export async function getTradeInfo(pid: string, trader: string) {
body: stringify({
query: `
{
buyInfos (where: { pool: "${pid.toLowerCase()}", buyer: "${trader.toLowerCase()}" } first: 10000) {
buyInfos (where: { pool: "${pid.toLowerCase()}", buyer: "${trader.toLowerCase()}" } first: 1000) {
buyer {
${TRADER_FIELDS}
}
Expand All @@ -67,13 +67,13 @@ export async function getTradeInfo(pid: string, trader: string) {
amount_sold
amount_bought
}
sellInfos (where: { pool: "${pid.toLowerCase()}", seller: "${trader.toLowerCase()}" } first: 10000) {
sellInfos (where: { pool: "${pid.toLowerCase()}", seller: "${trader.toLowerCase()}" } first: 1000) {
seller {
address
}
amount
}
destructInfos (where: { pool: "${pid.toLowerCase()}", seller: "${trader.toLowerCase()}" } first: 10000) {
destructInfos (where: { pool: "${pid.toLowerCase()}", seller: "${trader.toLowerCase()}" } first: 1000) {
seller {
address
}
Expand Down Expand Up @@ -153,7 +153,7 @@ export async function getAllPoolsAsSeller(address: string) {
body: stringify({
query: `
{
sellInfos (where: { seller: "${address.toLowerCase()}" } first: 10000) {
sellInfos (where: { seller: "${address.toLowerCase()}" } first: 1000) {
pool {
${POOL_FIELDS}
exchange_in_volumes
Expand Down Expand Up @@ -191,7 +191,7 @@ export async function getAllPoolsAsBuyer(address: string) {
body: stringify({
query: `
{
buyInfos (where: { buyer: "${address.toLowerCase()}" } first: 10000) {
buyInfos (where: { buyer: "${address.toLowerCase()}" } first: 1000) {
pool {
${POOL_FIELDS}
exchange_in_volumes
Expand Down
4 changes: 2 additions & 2 deletions packages/maskbook/src/plugins/RedPacket/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function getRedPacketTxid(rpid: string) {
body: JSON.stringify({
query: `
{
redPackets (where: { rpid: "${rpid.toLowerCase()}" } first: 10000) {
redPackets (where: { rpid: "${rpid.toLowerCase()}" } first: 1000) {
${RED_PACKET_FIELDS}
}
}
Expand All @@ -100,7 +100,7 @@ export async function getRedPacketHistory(address: string, chainId: ChainId) {
body: JSON.stringify({
query: `
{
redPackets (where: { creator: "${address.toLowerCase()}" } first: 10000) {
redPackets (where: { creator: "${address.toLowerCase()}" } first: 1000) {
${RED_PACKET_FIELDS}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export async function fetchTokenDayData(address: string, date: Date) {
}
}>(`
{
tokenDayDatas(first: 10000, orderBy: date, date: ${utcTimestamp}, where: { token: ${address} }) {
tokenDayDatas(first: 1000, orderBy: date, date: ${utcTimestamp}, where: { token: ${address} }) {
id
date
priceUSD
Expand Down

0 comments on commit b4697a2

Please sign in to comment.