Author

Topic: Where can I find the various Ethereum token contract solitidy source code (Read 75 times)

sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
Thanks
If there is a deployed contract but the code hidden i think maybe there will be some unknown behavior causing some problem ?
Whether the codes can be forced to be public?
You can't force a code to be open source.
The person that deployed the smart contract does NOT have to make the source code available.
However, the bytecode of EVERY ethereum smart contract is always available and since tokens aren't arbitrarily complex, it is possible to reverse-engineer a token.

Quote
Also is it possible to reset the exchange rate from my coin to ether dynamically ?
So after the address received ether it will automatically send out my coin to the same address based on the dynamic exchange rate ?
Any sample code for this

It should be possible theoretically, that a contract can be able to deduce the exchange rate of a token through Oracle's, however it is impossible for a contract to act on its own.
Contracts MUST always be called and they cannot call themselves so it's impossible for the token to make a transaction by itself without an external call.
Someone made an Ethereum Alarm Clock so you can schedule events to be called later.
member
Activity: 490
Merit: 10
Bitfresh - iGaming with 90s UI
I think if you need an example of a conventional smart contract, then you can find it on the site ethereum. On their official website there is a lot of useful information for those who really want to learn how to create smart contractors.
member
Activity: 476
Merit: 17
Price token is taken from the calculation of its market value on crypto currency Exchange Act. You can find you are interested token ERC-20 with its description and complete information on: https://etherscan.io/token/
member
Activity: 100
Merit: 11
Thanks
If there is a deployed contract but the code hidden i think maybe there will be some unknown behavior causing some problem ?
Whether the codes can be forced to be public?
Also is it possible to reset the exchange rate from my coin to ether dynamically ?
So after the address received ether it will automatically send out my coin to the same address based on the dynamic exchange rate ?
Any sample code for this
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
Do you want sample codes or existing codes for various tokens?
If it's the former, check Consensys' GitHub page, they have a number of standard token examples.
If it's the latter then check the contract source tab on the etherscan page of the token's contract address.
P.S Not everyone will share the code to their smart contract, although for an ICO it is deemed as a mark of transparency if they do so.
member
Activity: 100
Merit: 11
Jump to: