gasfee

package
v0.0.0-...-5323c5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 22 Imported by: 0

README

Type 2: Gas Refund

  • triggered on 00:00 UTC+0
  • User has to wait for 1 day
  • User to transfer more than 200 USD from BSC or Ethereum
  • Pick Min price from the previous day, No need for reducing factor.
    • the lowest BNB_USTD price
    • the highest FRA_USTD price
    • actions:
      1. get bnb/usdt, fra/usdt, btc/usdt, eth/usdt price from gate.io regularly (every 10 mins)
      2. every 24 hours get transfer to address value more than 200 usd
      3. send him XXX * price(bnb/usdt) / price(fra/usdt) FRA
      4. XXX = 0**.**00053251 * 0.5 (2.66255e+14 wei)

Max Cap :

  • A fixed threshold

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotOverThreshold = errors.New("transaction value is not over the threshold")

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(c client.Client, conf *config.GasfeeService) (*Service, error)

func (*Service) Close

func (s *Service) Close()

Close stops the fork out goroutines from Start method

func (*Service) Start

func (s *Service) Start()

Start spawns two goroutines: 1. a crawler ---> crawling gate.io to get the usdt price 2. a refund ---> do the refunding action to recipients

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL