Skip to content

backed-fi/backed-token-contract

Repository files navigation

Backed Finance token contract

test workflow status

This repo contains the token contracts of Backed Finance AG. Meant to be used mostly for the tokenized stocks products by Backed Assets GmbH.

Functionality

The token is an upgradeable ERC20 token. Inheriting the OpenZeppelin ERC20Upgradeable.sol. It adds on top of it a permit and delegateTransfer functions, to allow approving and transferring via ERC712 signatures, mostly based on code by OpenZeppelin. The contract also has an owner, that can set the minter, burner, and pauser roles. As well as turn on and off the ability to relay ERC712 signed messages, for specific or all users.

Installing

    npm install

Available script

Compile

    npm run compile

test

    npm run test

lint

    npm run lint