Skip to content

Commit

Permalink
Add a function getTotalLiquidity in LoyaltyBridge.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Apr 1, 2024
1 parent d7a3750 commit 475dbe7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/contracts-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dms-osx-lib",
"version": "2.10.2",
"version": "2.10.3",
"description": "",
"main": "dist/bundle-cjs.js",
"module": "dist/bundle-esm.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/contracts/contracts/controllers/LoyaltyBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,10 @@ contract LoyaltyBridge is LoyaltyBridgeStorage, Initializable, OwnableUpgradeabl
require(_msgSender() == owner(), "1050");
fee = _fee;
}

/// @notice 전체 유동성 자금을 조회합니다.
function getTotalLiquidity(bytes32 _tokenId) external view override returns (uint256) {
require(_tokenId == tokenId, "1713");
return ledgerContract.tokenBalanceOf(address(this));
}
}
4 changes: 2 additions & 2 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dms-osx-artifacts",
"version": "2.10.2",
"version": "2.10.3",
"description": "Smart contracts that decentralized point systems",
"files": [
"**/*.sol"
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"dependencies": {
"del-osx-artifacts": "^2.3.0",
"dms-bridge-contracts": "^1.2.2",
"dms-bridge-contracts": "^1.2.3",
"multisig-wallet-contracts": "^1.1.0",
"loyalty-tokens": "^1.0.7"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/faker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"axios": "^1.6.7",
"chai": "^4.3.7",
"del-osx-artifacts": "^2.3.0",
"dms-bridge-contracts": "^1.2.2",
"dms-osx-artifacts": "^2.10.2",
"dms-bridge-contracts": "^1.2.3",
"dms-osx-artifacts": "^2.10.3",
"dotenv": "^10.0.0",
"ethereum-waffle": "^4.0.10",
"ethers": "5.7.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
"chai-http": "^4.3.7",
"cors": "^2.8.5",
"del-osx-artifacts": "^2.3.0",
"dms-bridge-contracts": "^1.2.2",
"dms-osx-artifacts": "^2.10.2",
"dms-bridge-contracts": "^1.2.3",
"dms-osx-artifacts": "^2.10.3",
"dotenv": "^10.0.0",
"ethereum-waffle": "^4.0.10",
"ethereumjs-util": "^7.1.5",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3350,10 +3350,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a"
integrity sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==

dms-bridge-contracts@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/dms-bridge-contracts/-/dms-bridge-contracts-1.2.2.tgz#53d1b60b77fda5f712a2b09003a29ee0ec746435"
integrity sha512-VAS6MlqmrObR24wODzPcG3XR7VqlYIFdj72ei9iu66f17fXQ1JICbqQNIn9cfEK5e+DWYsvN+SyZmAV4NuKbrg==
dms-bridge-contracts@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/dms-bridge-contracts/-/dms-bridge-contracts-1.2.3.tgz#e46b4aec8691ffe2b8aaff5f76247d306f8b8eae"
integrity sha512-PNFR8tQ/C6rjPR3WNJZwJjdg9AXyxusdCEvXL2izzqGSYPMIqJu+kdwNeyAHebhlq30Wrr+AxFv+iQO/HT7+/Q==

dns-over-http-resolver@^1.2.3:
version "1.2.3"
Expand Down

0 comments on commit 475dbe7

Please sign in to comment.