Home Reference Source
import {StepFunctionDataPoint} from 'kyber-fpr-sdk/src/conversion_rates_contract.js'
public class | source

StepFunctionDataPoint

Constructor Summary

Public Constructor
public

constructor(x: *, y: *)

Create a new StepFunctionDataPoint.

Member Summary

Public Members
public get

x: *

public set

x

public get

y: *

public set

y

Private Members
private

_x: *

private

_y: *

Public Constructors

public constructor(x: *, y: *) source

Create a new StepFunctionDataPoint.

Params:

NameTypeAttributeDescription
x *

{int} - buy step in wei amount

y *

{int} - impact on buy rate in basis points (bps). 1 bps = 0.01%

Public Members

public get x: * source

public set x source

public get y: * source

public set y source

Private Members

private _x: * source

private _y: * source