Code Monkey home page Code Monkey logo

atomic-dss's Introduction

Atomic Digital Security Standard

An extendable smart contract standard for digital security issuance and automated regulatory compliance.

Overview

The Atomic Digital Security Standard (DSS) is a permissioned, ERC-20 compatible digital security that enforces transfer restrictions based on an upgradable RegulatorService contract. Once deployed, the RegulatorService can be replaced and configured to maintain ongoing compliance with securities regulations e.g. the enforcement of KYC/AML requirements, accredited investor checks, trading lock-up periods, tax laws, and other contractual agreements. The Atomic DSS architecture allows securities issuers to automate enforcement of a modifiable list of restrictions, while also providing the flexibility to update these restrictions to adapt to changes to regulations, governance, and/or business requirements that could emerge in the future.

Requirements

  • The Atomic DSS overrides standard ERC-20 functions transfer() and transferFrom() with additional checks to determine whether a transfer ought to be restricted. This is implemented by calling verify() from inside the current RegulatorService to supply the necessary restrictions logic.
  • The verify() function returns byte code that signals the status of a transfer and the specific reason for a restriction if it occurs. Additionally, the RegulatorService implements restrictionMessage() that returns a human-readable error message corresponding to a given byte code.
  • In order to allow for upgrading the digital security's restrictions logic, the Atomic DSS abstracts the RegulatorService by storing a reference to its contract address and implements replaceRegulator() that changes the pointer to a new RegulatorService.

Specification

Atomic DSS builds on the ERC-20 standard and provides additional functionality:

contract AtomicDSS is ERC20, Ownable {
event ReplaceRegulator(address oldRegulator, address newRegulator);

modifier notRestricted (address _from, address _to, uint256 _value);
modifier isContract (address _addr);

function replaceRegulator(RegulatorService _regulator) public onlyOwner isContract(_regulator);
function transfer(address _to, uint256 _value) public notRestricted returns (bool);
function transferFrom(address _from, address _to, uint256 _value) public notRestricted returns (bool);

function mint(address _account, uint256 _amount) public onlyOwner returns (bool);
function burn(address _account, uint256 _amount) public onlyOwner returns (bool);
function forceTransfer(address _from, address _to, uint256 _value) public onlyOwner returns (bool);
}

The RegulatorService contains all the restrictions logic and an error messaging system:

contract RegulatorService {
function verify(address _token, address _spender, address _from, address _to, uint256 _amount) public view returns (byte);
function restrictionMessage(byte restrictionCode) public view returns (string);
}

atomic-dss's People

Contributors

khaneight avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.