Skip to content

feat: add lists params for near #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stellar/frontend/src/app/application/create-round/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ const CreateRoundPage = () => {
use_compliance: data.allow_compliance || false,
use_referrals: false,
referrer_fee_basis_points: 0,
use_whitelist: false,
use_whitelist: checkedListIds.length > 0,
wl_list_id: checkedListIds.length > 0 ? checkedListIds[0] : undefined,
voting_end_ms: data.voting_duration_end?.getTime() || 0,
voting_start_ms: data.voting_duration_start?.getTime() || 0,
num_picks_per_voter: data.vote_per_person,
Expand Down
1 change: 1 addition & 0 deletions stellar/frontend/src/services/near/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type NearCreateRoundParams = {
application_requires_video: boolean
expected_amount: string
use_whitelist: boolean | undefined
wl_list_id: bigint | undefined
num_picks_per_voter: number
max_participants: number | undefined
use_cooldown: boolean
Expand Down