Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 23334

Questions about Remix, an online browser compiler for Solidity, formerly called Browser Solidity.

5 votes
2 answers
7k views

Is there a way to get the *current* price of ETH in solidity function?

Is it possible to get the current price of ETH in USD in a buyTokens function of a deployed solidity smart contract? For instance, every time GETH starts up is determines the price of ETH during init …
wardsback's user avatar
  • 399
0 votes
3 answers
3k views

Best way to perform a Token conversion formula

So I am having difficulty with multiplying in Wei. ======================================================================= Here is the short version: I want to multiply 7000 ether by 1.25 to get 875 …
wardsback's user avatar
  • 399
1 vote
1 answer
959 views

Best way to do USD math in Solidity?

USD would be represented as 0500000000000000000; //0.500000000000000000 $10.00 USD would be represented as 10000000000000000000; //10.000000000000000000000000 If I lead any unit values with zeros, Remix
wardsback's user avatar
  • 399
0 votes
1 answer
215 views

Issue with Assert statement in solidity

I am probably missing something very obvious but I cannot get the simplest assert statement to work! What am I doing wrong? My goal is to simply confirm that I am within a start date and end date ran …
wardsback's user avatar
  • 399
1 vote
1 answer
622 views

Best way to send an address to the constructor in Remix?

What is the best way to do it in Remix? Say contract A is in Remix to create Tokens and contract B (another solidity file) is the actual Crowdsale contract. … How would the same be done in Remix? …
wardsback's user avatar
  • 399