-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/skale 4448 allow wallets store skl #653
base: feature/SKALE-3749-schain-pricing
Are you sure you want to change the base?
Feature/skale 4448 allow wallets store skl #653
Conversation
…ithub.com/skalenetwork/skale-manager into enhancement/SKALE-2510-adopt-private-keys
…t-private-keys Enhancement/skale 2510 adopt private keys
…events Enhancement/skale 3785 add events
Bumps [web3](https://github.com/ethereum/web3.js) from 1.4.0 to 1.5.1. - [Release notes](https://github.com/ethereum/web3.js/releases) - [Changelog](https://github.com/ChainSafe/web3.js/blob/1.x/CHANGELOG.md) - [Commits](web3/web3.js@v1.4.0...v1.5.1) --- updated-dependencies: - dependency-name: web3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…3-1.5.1 Bump web3 from 1.4.0 to 1.5.1
Bumps [ethers](https://github.com/ethers-io/ethers.js/tree/HEAD/packages/ethers) from 5.4.2 to 5.4.4. - [Release notes](https://github.com/ethers-io/ethers.js/releases) - [Changelog](https://github.com/ethers-io/ethers.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/ethers-io/ethers.js/commits/v5.4.4/packages/ethers) --- updated-dependencies: - dependency-name: ethers dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…ers-5.4.4 Bump ethers from 5.4.2 to 5.4.4
Codecov Report
@@ Coverage Diff @@
## feature/SKALE-3749-schain-pricing #653 +/- ##
==================================================================
Coverage 95.39% 95.40%
==================================================================
Files 38 38
Lines 2584 2611 +27
Branches 414 409 -5
==================================================================
+ Hits 2465 2491 +26
- Misses 119 120 +1
Continue to review full report at Codecov.
|
// /** | ||
// * @dev Returns the current price in SKL tokens for given Schain type and lifetime. | ||
// */ | ||
// function getSchainPrice(uint typeOfSchain, uint lifetime) public view returns (uint) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be removed?
msg.sender.transfer(amount); | ||
} | ||
|
||
function storeSchainDeposit(bytes32 schainHash, uint deposit) external allow("Schains") { | ||
_schainDeposits[schainHash] += deposit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SafeMath is missing.
msg.sender.transfer(amount); | ||
} | ||
|
||
function storeSchainDeposit(bytes32 schainHash, uint deposit) external allow("Schains") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"IncreaseSchainDeposit"?
…448-allow-wallets-store-skl
7699f7b
to
7b540ec
Compare
Allow Wallets to store SKL