Skip to content

aravindhkm/tokenavgpriceV2

Repository files navigation

"Diamond standard" instead of traditional proxy pattern based upgradeability methods.

Diamond - https://ropsten.etherscan.io/address/0xbacdc8552884b23f71ed49527fae828d88138a11#code DiamondCutFacet - https://ropsten.etherscan.io/address/0x533ce32c38b77882ff4ceb32b48f096bc1c95245#code DiamondInit - https://ropsten.etherscan.io/address/0x636f1691ac4935e88c7c7b14225ba6330e163a7c#code DiamondLoupeFacet - https://ropsten.etherscan.io/address/0x8c4e403116744cc463cb47e9059cb779a6b90b1e#code OwnershipFacet - https://ropsten.etherscan.io/address/0x7bfeb25c51bb9daf3aa0cfa55586cc4b7881b0d1#code

Version-1 Anyone can set everyday price of a token.

Logic - https://ropsten.etherscan.io/address/0xc9aeeccebd2b3655fa9cba9ddbabb6efd1511cf8#code

Success Transaction - Admin Set the Price - https://ropsten.etherscan.io/tx/0xb74e53bd31a23113acf691da7294b494133d172f6dc167e3a233d6a4f8ae61b8 User Set the Price - https://ropsten.etherscan.io/tx/0xfe6957a524009ff8ab4583afc5844c9c442c922fe87cd26990c102b95134d60b

Version-2 Only Owner can set everyday price of a token.

Logic - https://ropsten.etherscan.io/address/0x921E7D77D32B4FAc0D506A85F363a7E7A1A40f4E#code

Success Transaction - Admin Set the Price - https://ropsten.etherscan.io/tx/0x006ef9d56a93b262f79567f08a39597716b8a2c10b4735e97cb2ec3eaaa7699a User Set the Price - https://ropsten.etherscan.io/tx/0x4294cbc2c32bcb9b0531b35b2c84abef702b3ef694bd0267f32d4305a00d510d

Version-3 The price of a token on a day can be set on the same day itself.

Logic - https://ropsten.etherscan.io/address/0xadee6b656cf59768db355f425221ce16e4c89b72#code

Success Transaction - Admin Set the Price - https://ropsten.etherscan.io/tx/0x1ac193530d28979b5a286266d379dd62346194cbfd10e79e283599f298e57142 User Set the Price - https://ropsten.etherscan.io/tx/0x29e531a476423ddd210a593c702bbdaa7db8fa275d1b477016f63e096959fac2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published