Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 595 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 595 Bytes

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