5. Withdraw DAI from Public Pool
Last updated
Last updated
Withdraw DAIs from public liquidity pool. Once you retrieve your DAIs from the public pool, your reDAIs will be switched to DAIs.
TBD: Narratives
TBD: Lock/Unlock Period Explanation
Item
Description
Contract Address
Public pool contract (referenced by Smart Contract Overview section)
Contract Name
SLDDAIPools1.sol
Function
function withdraw(uint256 reTokenAmount)
Function Selector
0x3c264195
Invocation Type
Ethereum Transaction
Passing Parameters
Amount of DAIs to withdraw from public pool; actual number multiplied by 1E18
Return Value
None
Event Emitted
event Withdraw(address indexed account, uint256 amount);
Event Signature
0x884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364
Transaction Sample(BSC testnet)
POST
(BSC Mainnet) https://bsc-dataseed.binance.org/
Make a deposit transaction to Shield Protocol V1 on BSC network. More details on how to send a transaction via BSC RPC could be found here, https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction
jsonrpc
string
"2.0"
method
string
"eth_sendRawTransaction"
params
array
the signed transaction data coerced into string array
id
number
request sequence id, you could use timestamp as id