mfigurski80 / karmatoken Goto Github PK
View Code? Open in Web Editor NEWBOND On-Network Datastructure ($BOND) is a Financial Primitive aiming at satisfying interoperability standards as an NFT
Home Page: https://mfigurski80.github.io/karmaToken
BOND On-Network Datastructure ($BOND) is a Financial Primitive aiming at satisfying interoperability standards as an NFT
Home Page: https://mfigurski80.github.io/karmaToken
Currently, loan is being represented by:
struct PeriodicLoan {
bool active; // whether contract is still active or completed
address beneficiary; // address service payments should be made to
address borrower; // 'minter' of contract
uint256 period; // how often payments required
uint256 nextServiceTime; // next payment required
uint256 balance; // remaining payment amount
uint256 minimumPayment; // minimum payment amount
}
This is in contracts/LoanManager.sol
Could be optimized with a structure like:
struct PeriodicLoan {
address minter;
uint64 startTime;
uint32 periodDuration;
uint16 nPeriods;
uint16 curPeriod;
uint128 totalBalance;
}
Potentially also store hash of minter address instead of full 20 bytes?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.