smartcontractkit / near-protocol-contracts

MIT License
26 stars 8 forks source link

Update fungible token, fix u64 #2

Closed mikedotexe closed 4 years ago

mikedotexe commented 4 years ago

The main update here is the fungible token contract (for NEAR LINK, essentially) has been updated. This is the latest and greatest and takes special care to make sure end users cannot bloat the contract with data such that it can be exploited to where the cost of storage on the PoS becomes prohibitively expensive. To add state to this contract, the end user must essential "pay their way" essentially. Modified the oracle contract such that payment will occur when it should be, updated the README accordingly. Also realized that u64 is not safe in same way that we must use U128 instead of native u128, so I fixed those. Also addressed a number of concerns from the helpful PR comments in #1

mikedotexe commented 4 years ago

Thanks @krebernisak for the great comments. I think this is ready for another review. would like to try to merge this and iterate with new branches if that makes sense to you