Coder Social home page Coder Social logo

dao-help's People

Contributors

adklempner avatar alokt avatar okduncan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dao-help's Issues

Gas price is hardcoded in membership token transfer flow

In the flow TRF ERC20 Token, node Contract Executor, the gas price is hard coded:

let overrides = {
    // The maximum units of gas for the transaction to use
    gasLimit: 800000,

    // The price (in wei) per unit of gas
    gasPrice: ethers.utils.parseUnits('8.0', 'gwei'),

};

As the average gas price on the network grew, I had to keep rewriting the value so that transactions for membership tokens would succeed relatively quickly. It would be easier if the gas price for this transaction (and perhaps other transactions?) was a global const. However, I'm not sure how this would interact with the other gas-related global constants, min_eth_for_gas_fee and gas_buffer

Ideally, the gas price would be determined by data from something like the Eth Gas Station API

Wyre Account ID is hardcoded

In flow Contract Wallet Flow, function node Purchase Eth, the Wyre account ID is hardcoded on line 4:

wyreLink =  `${wyreLink}?destCurrency=ETH&dest=${msg.payload.user.account.fields.account_address}&accountId=AC_8MAWQ88LVEA`

Instead, it should use the global variable wyre_account_id:

wyreLink =  `${wyreLink}?destCurrency=ETH&dest=${msg.payload.user.account.fields.account_address}&accountId=${global.get('wyre_account_id')}`

Address of the TokenManager Aragon app is hardcoded in Signal proposal flow

In flow (Vote and New Proposal), function node Create Voting Proposal, the recipient of the transaction to start a new vote is hardcoded (to Collab19's TokenManager)

msg.payload.config = {
  "recipient" : "0x9231549259236b5A8C74A7B537308AcdC0d1fa3f",
  abi,
  "apiCall" : "forward",
  "args" : [_executtionScript],
  "value" : "0x0"
};

The address should be replaced with a new global param:

"recipient": global.get("address_token_manager"),

Config parameter queryProviderEndPoint is empty

In the Mainnet/Kovan consts blocks the parameter queryProviderEndPoint is empty. It should either be set to a default provider in the code, or a step to fill this variable should be added to the documentation.

Notes!

Have server running before Update functtionGlobalContext section

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.