Skip to content

Commit

Permalink
(BEDS-501) better wording
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Sep 19, 2024
1 parent 8e4d31f commit e77d032
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions backend/pkg/api/types/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ type InternalGetUserNotificationNetworksResponse ApiPagingResponse[NotificationN
// ------------------------------------------------------------
// Notification Settings
type NotificationSettingsNetwork struct {
IsGasAboveEnabled bool `json:"is_gas_above_threshold_enabled"`
GasAboveThreshold decimal.Decimal `json:"gas_above_threshold" faker:"eth"`
IsGasBelowEnabled bool `json:"is_gas_below_threshold_enabled"`
GasBelowThreshold decimal.Decimal `json:"gas_below_threshold" faker:"eth"`
IsParticipationRateEnabled bool `json:"is_participation_rate_threshold_enabled"`
ParticipationRateThreshold float64 `json:"participation_rate_threshold" faker:"boundary_start=0, boundary_end=1"`
IsGasAboveSubscribed bool `json:"is_gas_above_subscribed"`
GasAboveThreshold decimal.Decimal `json:"gas_above_threshold" faker:"eth"`
IsGasBelowSubscribed bool `json:"is_gas_below_subscribed"`
GasBelowThreshold decimal.Decimal `json:"gas_below_threshold" faker:"eth"`
IsParticipationRateSubscribed bool `json:"is_participation_rate_subscribed"`
ParticipationRateThreshold float64 `json:"participation_rate_threshold" faker:"boundary_start=0, boundary_end=1"`
}
type NotificationNetwork struct {
ChainId uint64 `json:"chain_id"`
Expand Down
6 changes: 3 additions & 3 deletions frontend/types/api/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ export type InternalGetUserNotificationNetworksResponse = ApiPagingResponse<Noti
* Notification Settings
*/
export interface NotificationSettingsNetwork {
is_gas_above_threshold_enabled: boolean;
is_gas_above_subscribed: boolean;
gas_above_threshold: string /* decimal.Decimal */;
is_gas_below_threshold_enabled: boolean;
is_gas_below_subscribed: boolean;
gas_below_threshold: string /* decimal.Decimal */;
is_participation_rate_threshold_enabled: boolean;
is_participation_rate_subscribed: boolean;
participation_rate_threshold: number /* float64 */;
}
export interface NotificationNetwork {
Expand Down

0 comments on commit e77d032

Please sign in to comment.