Skip to content

Commit

Permalink
temporarily disabled mining boost
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-ares committed Jun 21, 2024
1 parent 7001d68 commit a65204b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions cmd/freezer-refrigerant/tokenomics.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func (s *service) InitializeMiningBoostUpgrade( //nolint:gocritic // False negat
ctx context.Context,
req *server.Request[InitializeMiningBoostUpgradeRequestBody, tokenomics.PendingMiningBoostUpgrade],
) (*server.Response[tokenomics.PendingMiningBoostUpgrade], *server.Response[server.ErrorResponse]) {
if true {
return nil, server.Forbidden(errors.New("functionality temporarily disabled"))
}
resp, err := s.tokenomicsProcessor.InitializeMiningBoostUpgrade(ctx, *req.Data.MiningBoostLevelIndex, req.Data.UserID)
if err = errors.Wrapf(err, "failed to InitializeMiningBoostUpgrade for data:%#v", req.Data); err != nil {
switch {
Expand Down Expand Up @@ -83,6 +86,9 @@ func (s *service) FinalizeMiningBoostUpgrade( //nolint:gocritic // False negativ
ctx context.Context,
req *server.Request[FinalizeMiningBoostUpgradeRequestBody, tokenomics.PendingMiningBoostUpgrade],
) (*server.Response[tokenomics.PendingMiningBoostUpgrade], *server.Response[server.ErrorResponse]) {
if true {
return nil, server.Forbidden(errors.New("functionality temporarily disabled"))
}
resp, err := s.tokenomicsProcessor.FinalizeMiningBoostUpgrade(ctx, req.Data.Network, req.Data.TXHash, req.Data.UserID)
if err = errors.Wrapf(err, "failed to FinalizeMiningBoostUpgrade for data:%#v", req.Data); err != nil {
switch {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/ethereum/go-ethereum v1.14.5
github.com/goccy/go-json v0.10.3
github.com/hashicorp/go-multierror v1.1.1
github.com/ice-blockchain/eskimo v1.330.0
github.com/ice-blockchain/eskimo v1.331.0
github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb
github.com/ice-blockchain/wintr v1.142.0
github.com/imroc/req/v3 v3.43.7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpO
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ice-blockchain/eskimo v1.330.0 h1:/z7qvILM9yLrkokxybKsmHZeEopw9wZ5j378edOa0rs=
github.com/ice-blockchain/eskimo v1.330.0/go.mod h1:CF4FDXk//H8/UGcaH2FYYacJ6BO2LIK5BjceHuA1TNE=
github.com/ice-blockchain/eskimo v1.331.0 h1:9Bo+ZqbtLmsN28Y78NJcaC6Z65X5ZMD3+gvWsEBuSW4=
github.com/ice-blockchain/eskimo v1.331.0/go.mod h1:CF4FDXk//H8/UGcaH2FYYacJ6BO2LIK5BjceHuA1TNE=
github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb h1:8TnFP3mc7O+tc44kv2e0/TpZKnEVUaKH+UstwfBwRkk=
github.com/ice-blockchain/go-tarantool-client v0.0.0-20230327200757-4fc71fa3f7bb/go.mod h1:ZsQU7i3mxhgBBu43Oev7WPFbIjP4TniN/b1UPNGbrq8=
github.com/ice-blockchain/wintr v1.142.0 h1:pojlgGyNsbcMh3Hv8v0tD7ahsekneYyeU4UZs5tINnw=
Expand Down

0 comments on commit a65204b

Please sign in to comment.