How to specify amount of Keep3r collateral?

Hey @katmai! You’re right, you need to change the collateralAmount as you say. As to how much to bond, I cannot answer that for you, it depends on what your goal is for bonding. I don’t know any jobs currently requiring bonded tokens, so I cannot comment on what would be a good number.

Just keep in mind the decimals! KP3R, as many other ERC20s, use 18 digits as decimals. So, if you want to transfer 1 token, you actually need to specify 1000000000000000000 (1 followed by 18 zeros, or 1e18). As an example, if you wanted to bond 10 KP3R tokens, your code would look like:

const collateralAmount = 10e18.toString(); // 10 Tokens

Hope this helps!

1 Like