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.
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.