swap

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIntegration

func NewIntegration(
	log *zap.Logger,
	accounts account.Store,
	pushTokens push.TokenStore,
	settings settings.Store,
	ocpData ocp_data.Provider,
	pusher push.Pusher,
	enableGainPushes bool,
	gainPushCooldown time.Duration,
) ocp_swap_worker.Integration

Types

type Integration

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

func (*Integration) OnSwapFinalized

func (i *Integration) OnSwapFinalized(ctx context.Context, owner *ocp_common.Account, isBuy bool, mint *ocp_common.Account, currencyName string, region ocp_currency_lib.Code, amountReceived float64) error

Jump to

Keyboard shortcuts

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