change WUSD payment to USDC
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
[
|
||||
{
|
||||
"inputs": [],
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "constructor"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -139,7 +144,7 @@
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "InsufficientWUSD",
|
||||
"name": "InsufficientUSDC",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
@@ -157,6 +162,11 @@
|
||||
"name": "InvalidBatchSize",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "InvalidChainlinkPrice",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "InvalidHardCap",
|
||||
@@ -172,6 +182,11 @@
|
||||
"name": "InvalidPrice",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "InvalidPriceFeed",
|
||||
"type": "error"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "NotInitializing",
|
||||
@@ -305,7 +320,7 @@
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "totalWusdDistributed",
|
||||
"name": "totalUsdcDistributed",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -324,7 +339,7 @@
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -405,12 +420,6 @@
|
||||
{
|
||||
"anonymous": false,
|
||||
"inputs": [
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "wusdPrice",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
@@ -445,7 +454,7 @@
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -527,7 +536,7 @@
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -558,13 +567,26 @@
|
||||
{
|
||||
"indexed": false,
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"name": "WithdrawRequestProcessed",
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "CHAINLINK_PRICE_PRECISION",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "PRICE_PRECISION",
|
||||
@@ -701,7 +723,7 @@
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_wusdAmount",
|
||||
"name": "_usdcAmount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -789,7 +811,7 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -853,7 +875,7 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -930,7 +952,7 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_wusdPrice",
|
||||
"name": "_usdcPrice",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -997,7 +1019,7 @@
|
||||
},
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "_wusd",
|
||||
"name": "_usdc",
|
||||
"type": "address"
|
||||
},
|
||||
{
|
||||
@@ -1007,13 +1029,13 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_initialWusdPrice",
|
||||
"name": "_initialYtPrice",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_initialYtPrice",
|
||||
"type": "uint256"
|
||||
"internalType": "address",
|
||||
"name": "_usdcPriceFeed",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"name": "initialize",
|
||||
@@ -1110,7 +1132,7 @@
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_wusdAmount",
|
||||
"name": "_usdcAmount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -1137,7 +1159,7 @@
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
@@ -1347,11 +1369,6 @@
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_wusdPrice",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "_ytPrice",
|
||||
@@ -1381,6 +1398,32 @@
|
||||
"stateMutability": "payable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "usdcAddress",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "usdcDecimals",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint8",
|
||||
"name": "",
|
||||
"type": "uint8"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [
|
||||
{
|
||||
@@ -1421,7 +1464,7 @@
|
||||
},
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "wusdAmount",
|
||||
"name": "usdcAmount",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
@@ -1462,32 +1505,6 @@
|
||||
"stateMutability": "nonpayable",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "wusdAddress",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "address",
|
||||
"name": "",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "wusdPrice",
|
||||
"outputs": [
|
||||
{
|
||||
"internalType": "uint256",
|
||||
"name": "",
|
||||
"type": "uint256"
|
||||
}
|
||||
],
|
||||
"stateMutability": "view",
|
||||
"type": "function"
|
||||
},
|
||||
{
|
||||
"inputs": [],
|
||||
"name": "ytPrice",
|
||||
|
||||
Reference in New Issue
Block a user