Can a voided option contract be transferred to a new company?

I gave a deposit of $10,000 and signed an option contract with a franchisor for a franchise to open within 12 months or the contract was void. The franchisor failed to deliver and refuses to refund my deposit stating they sold that part of the company and the acquiring company was to assume all liabilities. This acquisition came after the 12 months and the acquiring company breached their purchase contract.

Explaining how an Interface is a contract

When teaching Interfaces (in Java, for example), it is common to describe them as a contract. Which means that if a class implements an interface, it has to use the methods in the interface.

As an example, the students are shown the following example:

public interface Edible {

    public boolean isEdible();
    public void eat();

and then

public class Sandwich implements Edible {

    //now  we have to implement the methods in Edible
    public boolean isEdible(){
        return true; //just as an example
    public void eat(){

The problem with this example is that students don’t always see how the interface acts as a contract. How could I explain the analogy in a better way, maybe with a different example that can show this in a better way?

The students are high school level, and are familiar with polymorphism, but not with abstract classes.

Payments to a new Legal Entity (just a Contract Assignment Agreement?) [on hold]

an old business partner is asking to send payments to a new legal entity (incorporated in a different Country, Cyprus, and with different Bank account).

What would you do in order to avoid any possible future payment claim from the old entity?

I am asking for:
1. Contract Assignment Agreement (rather than “just” a letter from the old entity) formalizing the request to address any new payment to the new company. To be signed by Assignor, Assignee and me;
2. I will attach also the original agreement to it.
3. Checking the Certificate of Incorporation of the new Company;
4. Checking that there is no extra tax fee to be paid due to the new payment destination.

Am I missing something?

Thank you

Is it possible to call Augur functions from my own contract that I created?

For example, I’m trying to call the createYesNoMarket function from my own contract. I supply the universe address on deployment of my contract and I’ve followed the recommended contract call pattern. However, when I deploy and call the wrappedCreate function, I get a gas estimation error on Remix.

Can anyone help with this?

Gas estimation errored with the following message (see below). The
transaction execution will likely fail. Do you want to force sending?

contract Universe {
    function createYesNoMarket(uint256 _endTime, uint256 _feePerEthInWei, address _denominationToken, address _designatedReporterAddress, bytes32 _topic, string _description, string _extraInfo) public payable returns(address);

contract AugurWrapper {
    Universe universe;
    constructor(address _a) public{
        universe = Universe(_a);
    function wrappedCreate(uint256 _endTime, uint256 _feePerEthInWei, address _denominationToken, address _designatedReporterAddress, bytes32 _topic, string _description, string _extraInfo) public payable returns(address) {
        return universe.createYesNoMarket(_endTime,_feePerEthInWei,_denominationToken,_designatedReporterAddress,_topic,_description,_extraInfo);       

Can an employment contract contain a bond clause of X years?

I recently got a job offer abroad from a company that I interviewed at. In the job offer, they say that I will have to sign an employment contract on my first day at work. I read their offer letter thoroughly and everything seems good. But I’m not sure about this contract thing.

My biggest worry is that the employment contract might contain some bond with the company for X years. I am not going with the intention of quitting anytime soon but I do not want to be in a bond where I absolutely have to serve for a certain period of time or pay some money if I have to leave for some reason.

So my question is, is it possible that the contract can have such a clause even though nothing like this has been discussed or mentioned in the offer letter. And if the answer is yes, what is a good way to ask them for the terms in the contract? I don’t want to sound like someone who is going to switch jobs but at the same time, this is something that I am really concerned about. Thanks!!

Production REP token contract migration process

What occurred during the production REP token contract migration scheduled to begin at 11AM PST on August 9th?

This is an automatic migration, meaning REP token holders do not need to do anything. While there is not an exact timeframe of how long migration will take, the estimation is 8 to 10 hours, assuming there are no hiccups and all goes well.

What happens during the estimated 8 to 10 hour migration period?

  • Is there migration code that handles the new REP token contract being minted 1:1 to all REP token holders or will this handle some degree of manual intervention (for exchanges or other parties)?
  • What method was used to validate the 1:1 minting based on all REP token balances at the time of the migration?

Smart contract design for gas refund

I’m designing a proxy smartcontract that will be filled by users so that anyone has an incentive to can perform a transaction useful to the user. I won’t go into the detail of “usefulness” here.

My contract is a proxy that calls a function XXX(data). So far I’ve got this:

contract Broker
    using SafeMathOZ for uint256;
    Target                      public target;
    mapping(address => uint256) public m_balance;
    mapping(address => uint256) public m_reward;

    constructor(address _target) public {
        target = Target(_target);

    function () public payable {
        m_balance[msg.sender] = m_balance[msg.sender].add(msg.value);

    function deposit() public payable {
        m_balance[msg.sender] = m_balance[msg.sender].add(msg.value);

    function depositFor(address _account) public payable {
        m_balance[_account] = m_balance[_account].add(msg.value);

    function withdraw(uint256 _amount) public {
        m_balance[msg.sender] = m_balance[msg.sender].sub(_amount);

    function setReward(uint256 _reward) public {
        m_reward[msg.sender] = _reward;

    function XXX(Data data) public returns (bytes32) {
        uint256 gasBefore = gasleft();
        bytes32 result = target.XXX(data);
        address payer = data.requester;
        uint256 price = tx.gasprice * (87000 + gasBefore - gasleft()) + m_reward[payer];
        m_balance[payer] = m_balance[payer].sub(price);
        return result;

It works as expected and rewards the sender as I expect. What I am worried about is the possibility of a message sender to provide a very high gas price, thus draining the user balance and “giving” it to the miner :/

Any idea on how to solve this issue? Is there a better way then having the user specify a “maximum gas cost”?

How can I read any token units received in a Smart Contract? (Ether and other Tokens)

I would like to know how to identify units of specific tokens received in a Smart Contract.

I am building a Smart Contract that can receive ether or other ethereum tokens and in exchange for the tokens received another token will be issued.

Which code can I use in the Smart Contract to identify how many ether or any other token are received?

And in which function should it be used?