Skip to content

Commit

Permalink
chore: Cleanup Liquid UI error messages. Add Plume USDC to deployed c…
Browse files Browse the repository at this point in the history
…ontracts
  • Loading branch information
lucasia committed Nov 15, 2024
1 parent 5eb64e3 commit f47a18c
Show file tree
Hide file tree
Showing 3 changed files with 434 additions and 7 deletions.
3 changes: 3 additions & 0 deletions packages/contracts/resource/plumeTestnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ liquid_vault_impl="0x9Db9df1D91c5cdE0c92cf02B9992d42f47028b4A"
full_rate_bps = 10_00
# rate in basis points, e.g. 5.5% = 550 bps
reduced_rate_bps = 5_50
# January 1, 2024 2:00:00 PM UTC = 1704117600
vault_start_timestamp = 1704117600


[evm.contracts.upside_vault]
# 2 decimal place percentage (meaining value divided by 100) as integer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const ViewSection = () => {

const handleGrantRole = async (roleIndex: number) => {
if (!userAccountToGrant) {
notification.error("Missing required fields");
notification.error(`Grant Role: Missing userAccountToGrant`);
return;
}

Expand Down Expand Up @@ -166,7 +166,7 @@ const ViewSection = () => {

const handleRevokeRole = async (roleIndex: number) => {
if (!userAccountToRevoke) {
notification.error("Missing required fields");
notification.error(`Revoke Role: Missing userAccountToRevoke`);
return;
}

Expand Down Expand Up @@ -226,7 +226,7 @@ const ViewSection = () => {

const handleSetPeriod = async (directionIndex: number) => {
if (!numOfPeriods) {
notification.error("Missing required fields");
notification.error("Set Period. Missing numOfPeriods");
return;
}

Expand Down Expand Up @@ -293,7 +293,7 @@ const ViewSection = () => {

const handleSetTimestamp = async () => {
if (!selectedTimestamp) {
notification.error("Missing required fields");
notification.error("Set Timestamp. Missing selectedTimestamp");
return;
}

Expand Down Expand Up @@ -349,7 +349,7 @@ const ViewSection = () => {

const handleSetReducedRate = async () => {
if (!reducedRate) {
notification.error("Missing required fields");
notification.error("Set Reduced Rate. Missing reducedRate");
return;
}

Expand Down Expand Up @@ -388,12 +388,14 @@ const ViewSection = () => {

const handleWithdraw = async (withdrawType: number) => {
if (!custodian || !proxyContractData || !simpleUsdcContractData) {
notification.error("Missing required fields");
notification.error(
`Handle Withdraw - Missing required fields. Custodian:${custodian} , ProxyContractData: ${proxyContractData} , SimpleUsdcContractData: ${simpleUsdcContractData}`,
);
return;
}

if (!withdrawType && !assets) {
notification.error("Missing required fields");
notification.error(`Withdraw. Missing required fields. Withdraw Type: ${withdrawType} , assets: ${assets}`);
return;
}

Expand Down
Loading

0 comments on commit f47a18c

Please sign in to comment.