Vaulta

eosdmdpool1b

Contract

The data structures defined by this contract.

  • Table row type of stakepool

    {
      "name": "stakepool",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "swap",
          "type": "name"
        },
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "total_staked",
          "type": "uint64"
        },
        {
          "name": "total_reward",
          "type": "asset"
        },
        {
          "name": "released_reward",
          "type": "asset"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "epoch",
          "type": "uint32"
        }
      ]
    }
  • Table row type of distribution

    {
      "name": "distribution",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "interval",
          "type": "uint32"
        },
        {
          "name": "count",
          "type": "uint32"
        },
        {
          "name": "state",
          "type": "uint64"
        },
        {
          "name": "last_harvest_time",
          "type": "uint32"
        },
        {
          "name": "last_remaining_reward",
          "type": "asset"
        },
        {
          "name": "this_total_reward",
          "type": "asset"
        },
        {
          "name": "this_distributed_reward",
          "type": "asset"
        },
        {
          "name": "this_harvest_time",
          "type": "uint32"
        },
        {
          "name": "position",
          "type": "uint64"
        },
        {
          "name": "last_user",
          "type": "name"
        }
      ]
    }
  • Table row type of userstake

    {
      "name": "userstake",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "staked",
          "type": "uint64"
        },
        {
          "name": "claimed",
          "type": "asset"
        },
        {
          "name": "unclaimed",
          "type": "asset"
        }
      ]
    }
  • Table row type of liquidity

    {
      "name": "liquidity",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "token",
          "type": "uint64"
        }
      ]
    }
  • Table row type of liquiditysnp

    {
      "name": "liquiditysnp",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "token",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "swap",
          "type": "name"
        },
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "total_reward",
          "type": "asset"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "epoch",
          "type": "uint32"
        },
        {
          "name": "harvest_interval",
          "type": "uint32"
        },
        {
          "name": "harvest_count",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        }
      ]
    }
  • Action parameter in harvest2

    {
      "name": "harvest2",
      "base": "",
      "fields": [
        {
          "name": "nonce",
          "type": "uint32"
        },
        {
          "name": "count",
          "type": "uint32"
        }
      ]
    }