Skip to content

Savings account for tokens with withdrawal fee redistribution

Notifications You must be signed in to change notification settings

bogdanbatog/token-savings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Savings Simulation and Smart Contract

A simple deposit instrument for cryptocurrency tokens.

Deposit and withdraw into a common pool, managed by a smart contract. Withdrawals are subject to a constant percentage fee, no matter the duration of deposit. Fees are redistributed proportionally to active deposits.

The Python simulation implements O(1) updates per deposit/withdrawal operations, as required by a smart contract environment, where an iteration over all deposits would be prohibitively expensive.

Implemented for Ethereum, in Solidity. Uses truffle framework for testing.

About

Savings account for tokens with withdrawal fee redistribution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published