TokenFactory

Git Source

State Variables

_implementation

implementation of the swiftGate wrapped tokens

address internal immutable _implementation;

_swiftGate

address of the swift gate contract

address internal immutable _swiftGate;

Functions

onlySwiftGate

can only be called by swift gate

modifier onlySwiftGate();

constructor

the swift gate creates the token factory in its constructor.

constructor();

create

create a new wrapped token. Called by the swift gate

function create(string memory name_, string memory symbol_, address remoteToken_)
    external
    onlySwiftGate
    returns (address proxy_);

Parameters

NameTypeDescription
name_stringname of the wrapped token
symbol_stringsymbol of the wrapped token
remoteToken_addressaddress of the remote token contract

getImplementation

returns the address of the implementation of the wrapped tokens

function getImplementation() external view returns (address);

Errors

OnlySwiftGateError

triggered when an address other than the swift gate calls this contract

error OnlySwiftGateError(address msgSender_);