Skip to content

Commit b6d52d6

Browse files
Merge pull request #856 from 0xsend/calculate_send_slash_function
Calculate send slash function
2 parents d385f2e + 539e204 commit b6d52d6

14 files changed

+1012
-184
lines changed

apps/distributor/src/distributorv2.test.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ describe('Distributor V2 Worker', () => {
103103
updated_at: '2024-04-06T16:49:02.569245+00:00',
104104
snapshot_block_num: 13261327,
105105
chain_id: 845337,
106+
send_slash_divisor: 150,
106107
distribution_verification_values: [
107108
{
108109
type: 'tag_referral',
@@ -112,7 +113,6 @@ describe('Distributor V2 Worker', () => {
112113
multiplier_max: 2.5,
113114
multiplier_step: 0.1,
114115
distribution_id: 4,
115-
mode: 'individual',
116116
},
117117
{
118118
type: 'total_tag_referrals',
@@ -121,7 +121,7 @@ describe('Distributor V2 Worker', () => {
121121
multiplier_min: 1.0,
122122
multiplier_max: 2.0,
123123
multiplier_step: 0.01,
124-
mode: 'aggregate',
124+
125125
created_at: '2024-04-06T16:49:02.569245+00:00',
126126
updated_at: '2024-04-06T16:49:02.569245+00:00',
127127
distribution_id: 4,
@@ -131,7 +131,6 @@ describe('Distributor V2 Worker', () => {
131131
fixed_value: 200,
132132
bips_value: 0,
133133
distribution_id: 4,
134-
mode: 'individual',
135134
},
136135
{
137136
type: 'tag_registration',
@@ -140,7 +139,6 @@ describe('Distributor V2 Worker', () => {
140139
distribution_id: 4,
141140
created_at: '2024-04-06T16:49:02.569245+00:00',
142141
updated_at: '2024-04-06T16:49:02.569245+00:00',
143-
mode: 'individual',
144142
},
145143
{
146144
type: 'send_ten',
@@ -149,7 +147,6 @@ describe('Distributor V2 Worker', () => {
149147
distribution_id: 4,
150148
created_at: '2024-04-06T16:49:02.569245+00:00',
151149
updated_at: '2024-04-06T16:49:02.569245+00:00',
152-
mode: 'individual',
153150
},
154151
{
155152
type: 'send_one_hundred',
@@ -158,7 +155,6 @@ describe('Distributor V2 Worker', () => {
158155
distribution_id: 4,
159156
created_at: '2024-04-06T16:49:02.569245+00:00',
160157
updated_at: '2024-04-06T16:49:02.569245+00:00',
161-
mode: 'individual',
162158
},
163159
{
164160
type: 'send_streak',
@@ -170,7 +166,6 @@ describe('Distributor V2 Worker', () => {
170166
multiplier_step: 0.2,
171167
created_at: '2024-04-06T16:49:02.569245+00:00',
172168
updated_at: '2024-04-06T16:49:02.569245+00:00',
173-
mode: 'aggregate',
174169
},
175170
],
176171
} as Tables<'distributions'> & {

0 commit comments

Comments
 (0)