Skip to content

qd452/sswap

Repository files navigation

SSWAP

realise a Simple Swap contract

Quick Start

yarn install
yarn compile
yarn test

Dev

yarn init
yarn add --dev hardhat
npx hardhat

yarn add --dev @openzeppelin/contracts
yarn add --dev solmate
yarn add --dev ethereum-waffle
yarn add --dev [email protected]

npx hardhat compile
npx hardhat test

Design Considerations

EIP-712

for the signature validatiaon

Nonce

Nonce must be incremental, but not necessarily to consecutive; However if it is not consecutive, it is not gas efficient.

bitmap to save gas, see Bitmap_Example

About

realise a Simple Swap contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published