Skip to content

Commit

Permalink
Merge pull request #111 from ton-society/feature/exclude_holders
Browse files Browse the repository at this point in the history
Exclude banned users from new holders
  • Loading branch information
shuva10v authored Aug 7, 2024
2 parents a25a2ad + 7a12c07 commit efd53a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions backends/redoubt/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def _do_calculate(self, config: SeasonConfig, dry_run: bool = False):
>= {config.score_model.param(ScoreModel.PARAM_TOKEN_MIN_VALUE_FOR_NEW_HOLDER)}
-- new holder should have deployed wallet. at least at the past.
and exists (select from account_state as2 where as2.address = owner_address and code_hash is not null)
and not exists (select from tol.banned_users b where b.address = owner_address)
group by 1
)
select tol_tokens.symbol,
Expand Down
1 change: 1 addition & 0 deletions backends/redoubt/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def _do_calculate(self, config: SeasonConfig, dry_run: bool = False):
>= {config.score_model.param(ScoreModel.PARAM_TOKEN_MIN_VALUE_FOR_NEW_HOLDER)}
-- new holder should have deployed wallet. at least at the past.
and exists (select from account_state as2 where as2.address = owner_address and code_hash is not null)
and not exists (select from tol.banned_users b where b.address = owner_address)
group by 1
)
, price_snapshots as (
Expand Down

0 comments on commit efd53a1

Please sign in to comment.