load less proposals

This commit is contained in:
liangping 2023-05-16 18:18:09 +08:00
parent 88303be9cd
commit 8f793d295a

View File

@ -98,7 +98,7 @@ export class CosmosRestClient extends BaseRestClient<RequestRegistry> {
async getGovParamsTally() {
return this.request(this.registry.gov_params_tally, {});
}
async getGovProposals(status: string, limit = 50) {
async getGovProposals(status: string, limit = 20) {
const query =
'?proposal_status={status}&pagination.limit={limit}&pagination.reverse=true&pagination.key=';
return this.request(this.registry.gov_proposals, { status, limit }, query);